ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <kernel.h>
#include <string.h>
#include <sifrpc.h>
#include "slib.h"
#include "smod.h"
#include "common.h"
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_t * | slib_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 |
Sub CPU library interface.
Definition in file slib.c.
#define EXP_LIB_MAX SMEM_BUF_SIZE /* We can even handle CDVDMAN's bloat! */ |
slib_exp_lib_list_t* slib_exp_lib_list | ( | ) |
Find the head and tail of the export library list.
This routine will need to be called everytime the IOP is reset.
Definition at line 31 of file slib.c.
References __memcmp(), _slib_cur_exp_lib_list, smem_buf::bytes, slib_exp_lib_t::exports, slib_exp_lib_list_t::head, smem_buf::mod_info, NULL, SifRpcGetOtherData(), SyncDCache(), slib_exp_lib_list_t::tail, smod_mod_info_t::text_size, smod_mod_info_t::text_start, and smem_buf::words.
Referenced by 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 101 of file slib.c.
References __memcmp(), _slib_cur_exp_lib_list, smem_buf::bytes, smem_buf::exp_lib, EXP_LIB_MAX, slib_exp_lib_t::exports, slib_exp_lib_list_t::head, slib_exp_lib_t::name, slib_exp_lib_t::prev, SifRpcGetOtherData(), slib_exp_lib_list(), SyncDCache(), and slib_exp_lib_list_t::tail.
Referenced by sbv_patch_disable_prefix_check(), and sbv_patch_enable_lmb().
slib_exp_lib_list_t _slib_cur_exp_lib_list = {NULL, NULL} |
Definition at line 26 of file slib.c.
Referenced by sbv_patch_disable_prefix_check(), sbv_patch_enable_lmb(), slib_exp_lib_list(), and slib_get_exp_lib().