PS2SDK
PS2 Homebrew Libraries
slib.c File Reference
#include <tamtypes.h>
#include <kernel.h>
#include <string.h>
#include <sifrpc.h>
#include "slib.h"
#include "smod.h"
#include "common.h"
+ Include dependency graph for slib.c:

Go to the source code of this file.

Macros

#define EXP_LIB_MAX   SMEM_BUF_SIZE /* We can even handle CDVDMAN's bloat! */
 

Functions

slib_exp_lib_list_tslib_exp_lib_list (void)
 
int slib_get_exp_lib (const char *name, slib_exp_lib_t *library)
 

Variables

slib_exp_lib_list_t _slib_cur_exp_lib_list = {NULL, NULL}
 
struct smem_buf smem_buf
 

Detailed Description

Sub CPU library interface.

Definition in file slib.c.

Function Documentation

◆ slib_exp_lib_list()

slib_exp_lib_list_t* slib_exp_lib_list ( )

Find the head and tail of the export library list.

Returns
NULL if the list couldn't be found, and the address of the head and tail pointers if it was located.

This routine will need to be called everytime the IOP is reset.

Definition at line 31 of file slib.c.

◆ slib_get_exp_lib()

int slib_get_exp_lib ( const char *  name,
slib_exp_lib_t library 
)

Retrieve an export library by name.

Definition at line 103 of file slib.c.