sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
xmodload.h File Reference
#include <modload.h>

Go to the source code of this file.

Classes

struct  ModuleStatus
struct  LDfilefunc
struct  LMWOoption

Macros

#define xmodload_IMPORTS_start   DECLARE_IMPORT_TABLE(modload, 1, 7)
#define xmodload_IMPORTS_end   END_IMPORT_TABLE
#define I_GetModuleIdList   DECLARE_IMPORT(16, GetModuleIdList)
#define I_ReferModuleStatus   DECLARE_IMPORT(17, ReferModuleStatus)
#define I_GetModuleIdListByName   DECLARE_IMPORT(18, GetModuleIdListByName)
#define I_LoadModuleWithOption   DECLARE_IMPORT(19, LoadModuleWithOption)
#define I_StopModule   DECLARE_IMPORT(20, StopModule)
#define I_UnloadModule   DECLARE_IMPORT(21, UnloadModule)
#define I_SearchModuleByName   DECLARE_IMPORT(22, SearchModuleByName)
#define I_SearchModuleByAddress   DECLARE_IMPORT(23, SearchModuleByAddress)
#define I_SelfStopModule   DECLARE_IMPORT(26, SelfStopModule)
#define I_SelfUnloadModule   DECLARE_IMPORT(27, SelfUnloadModule)
#define I_AllocLoadMemory   DECLARE_IMPORT(28, AllocLoadMemory)
#define I_FreeLoadMemory   DECLARE_IMPORT(29, FreeLoadMemory)
#define I_SetModuleFlags   DECLARE_IMPORT(30, SetModuleFlags)

Functions

int GetModuleIdList (int *readbuf, int readbufsize, int *modulecount)
int ReferModuleStatus (int modid, ModuleStatus *status)
int GetModuleIdListByName (const char *name, int *readbuf, int readbufsize, int *modulecount)
int LoadModuleWithOption (const char *filename, const LMWOoption *option)
int StopModule (int modid, int arglen, const char *args, int *result)
int UnloadModule (int modid)
int SearchModuleByName (const char *name)
int SearchModuleByAddress (const void *addr)
int SelfStopModule (int arglen, const char *args, int *result)
void SelfUnloadModule (void)
void * AllocLoadMemory (int type, unsigned int size, void *addr)
int FreeLoadMemory (void *area)
int SetModuleFlags (int modid, int flag)

Detailed Description

Additional modload functions only found in newer IOPRP images

Definition in file xmodload.h.

Macro Definition Documentation

◆ I_AllocLoadMemory

#define I_AllocLoadMemory   DECLARE_IMPORT(28, AllocLoadMemory)

Definition at line 96 of file xmodload.h.

◆ I_FreeLoadMemory

#define I_FreeLoadMemory   DECLARE_IMPORT(29, FreeLoadMemory)

Definition at line 97 of file xmodload.h.

◆ I_GetModuleIdList

#define I_GetModuleIdList   DECLARE_IMPORT(16, GetModuleIdList)

Definition at line 86 of file xmodload.h.

◆ I_GetModuleIdListByName

#define I_GetModuleIdListByName   DECLARE_IMPORT(18, GetModuleIdListByName)

Definition at line 88 of file xmodload.h.

◆ I_LoadModuleWithOption

#define I_LoadModuleWithOption   DECLARE_IMPORT(19, LoadModuleWithOption)

Definition at line 89 of file xmodload.h.

◆ I_ReferModuleStatus

#define I_ReferModuleStatus   DECLARE_IMPORT(17, ReferModuleStatus)

Definition at line 87 of file xmodload.h.

◆ I_SearchModuleByAddress

#define I_SearchModuleByAddress   DECLARE_IMPORT(23, SearchModuleByAddress)

Definition at line 93 of file xmodload.h.

◆ I_SearchModuleByName

#define I_SearchModuleByName   DECLARE_IMPORT(22, SearchModuleByName)

Definition at line 92 of file xmodload.h.

◆ I_SelfStopModule

#define I_SelfStopModule   DECLARE_IMPORT(26, SelfStopModule)

Definition at line 94 of file xmodload.h.

◆ I_SelfUnloadModule

#define I_SelfUnloadModule   DECLARE_IMPORT(27, SelfUnloadModule)

Definition at line 95 of file xmodload.h.

◆ I_SetModuleFlags

#define I_SetModuleFlags   DECLARE_IMPORT(30, SetModuleFlags)

Definition at line 98 of file xmodload.h.

◆ I_StopModule

#define I_StopModule   DECLARE_IMPORT(20, StopModule)

Definition at line 90 of file xmodload.h.

◆ I_UnloadModule

#define I_UnloadModule   DECLARE_IMPORT(21, UnloadModule)

Definition at line 91 of file xmodload.h.

◆ xmodload_IMPORTS_end

#define xmodload_IMPORTS_end   END_IMPORT_TABLE

Definition at line 84 of file xmodload.h.

◆ xmodload_IMPORTS_start

#define xmodload_IMPORTS_start   DECLARE_IMPORT_TABLE(modload, 1, 7)

Definition at line 83 of file xmodload.h.

Function Documentation

◆ AllocLoadMemory()

void * AllocLoadMemory ( int type,
unsigned int size,
void * addr )
extern

Definition at line 290 of file modload.c.

◆ FreeLoadMemory()

int FreeLoadMemory ( void * area)
extern

Definition at line 304 of file modload.c.

◆ GetModuleIdList()

int GetModuleIdList ( int * readbuf,
int readbufsize,
int * modulecount )
extern

Definition at line 697 of file modload.c.

◆ GetModuleIdListByName()

int GetModuleIdListByName ( const char * name,
int * readbuf,
int readbufsize,
int * modulecount )
extern

Definition at line 667 of file modload.c.

◆ LoadModuleWithOption()

int LoadModuleWithOption ( const char * filename,
const LMWOoption * option )
extern

Definition at line 358 of file modload.c.

◆ ReferModuleStatus()

int ReferModuleStatus ( int modid,
ModuleStatus * status )
extern

Definition at line 702 of file modload.c.

◆ SearchModuleByAddress()

int SearchModuleByAddress ( const void * addr)
extern

Definition at line 602 of file modload.c.

◆ SearchModuleByName()

int SearchModuleByName ( const char * name)
extern

Definition at line 583 of file modload.c.

◆ SelfStopModule()

int SelfStopModule ( int arglen,
const char * args,
int * result )
extern

Definition at line 505 of file modload.c.

◆ SelfUnloadModule()

void SelfUnloadModule ( void )
extern

Definition at line 530 of file modload.c.

◆ SetModuleFlags()

int SetModuleFlags ( int modid,
int flag )
extern

Definition at line 329 of file modload.c.

◆ StopModule()

int StopModule ( int modid,
int arglen,
const char * args,
int * result )
extern

Definition at line 467 of file modload.c.

◆ UnloadModule()

int UnloadModule ( int modid)
extern

Definition at line 492 of file modload.c.