Data Structures | |
struct | SceKernelLMOption |
struct | SceKernelSMOption |
struct | SceKernelModuleInfo |
Defines | |
#define | PSP_MEMORY_PARTITION_KERNEL 1 |
#define | PSP_MEMORY_PARTITION_USER 2 |
Functions | |
SceUID | sceKernelLoadModule (const char *path, int flags, SceKernelLMOption *option) |
Load a module. | |
SceUID | sceKernelLoadModuleMs (const char *path, int flags, SceKernelLMOption *option) |
Load a module from MS. | |
SceUID | sceKernelLoadModuleByID (SceUID fid, int flags, SceKernelLMOption *option) |
Load a module from the given file UID. | |
SceUID | sceKernelLoadModuleBufferUsbWlan (SceSize bufsize, void *buf, int flags, SceKernelLMOption *option) |
Load a module from a buffer using the USB/WLAN API. | |
int | sceKernelStartModule (SceUID modid, SceSize argsize, void *argp, int *status, SceKernelSMOption *option) |
Start a loaded module. | |
int | sceKernelStopModule (SceUID modid, SceSize argsize, void *argp, int *status, SceKernelSMOption *option) |
Stop a running module. | |
int | sceKernelUnloadModule (SceUID modid) |
Unload a stopped module. | |
int | sceKernelSelfStopUnloadModule (int unknown, SceSize argsize, void *argp) |
Stop and unload the current module. | |
int | sceKernelStopUnloadSelfModule (SceSize argsize, void *argp, int *status, SceKernelSMOption *option) |
Stop and unload the current module. | |
int | sceKernelQueryModuleInfo (SceUID modid, SceKernelModuleInfo *info) |
Query the information about a loaded module from its UID. | |
int | sceKernelGetModuleIdList (SceUID *readbuf, int readbufsize, int *idcount) |
Get a list of module IDs. |
#define PSP_MEMORY_PARTITION_KERNEL 1 |
#define PSP_MEMORY_PARTITION_USER 2 |
int sceKernelGetModuleIdList | ( | SceUID * | readbuf, | |
int | readbufsize, | |||
int * | idcount | |||
) |
Get a list of module IDs.
NOTE: This is only available on 1.5 firmware and above. For V1 use pspSdkGetModuleIdList.
readbuf | - Buffer to store the module list. | |
readbufsize | - Number of elements in the readbuffer. | |
idcount | - Returns the number of module ids |
SceUID sceKernelLoadModule | ( | const char * | path, | |
int | flags, | |||
SceKernelLMOption * | option | |||
) |
Load a module.
path | - The path to the module to load. | |
flags | - Unused, always 0 . | |
option | - Pointer to a mod_param_t structure. Can be NULL. |
SceUID sceKernelLoadModuleBufferUsbWlan | ( | SceSize | bufsize, | |
void * | buf, | |||
int | flags, | |||
SceKernelLMOption * | option | |||
) |
Load a module from a buffer using the USB/WLAN API.
Can only be called from kernel mode, or from a thread that has attributes of 0xa0000000.
bufsize | - Size (in bytes) of the buffer pointed to by buf. | |
buf | - Pointer to a buffer containing the module to load. The buffer must reside at an address that is a multiple to 64 bytes. | |
flags | - Unused, always 0. | |
option | - Pointer to an optional SceKernelLMOption structure. |
SceUID sceKernelLoadModuleByID | ( | SceUID | fid, | |
int | flags, | |||
SceKernelLMOption * | option | |||
) |
Load a module from the given file UID.
fid | - The module's file UID. | |
flags | - Unused, always 0. | |
option | - Pointer to an optional SceKernelLMOption structure. |
SceUID sceKernelLoadModuleMs | ( | const char * | path, | |
int | flags, | |||
SceKernelLMOption * | option | |||
) |
Load a module from MS.
path | - The path to the module to load. | |
flags | - Unused, set to 0. | |
option | - Pointer to a mod_param_t structure. Can be NULL. |
int sceKernelQueryModuleInfo | ( | SceUID | modid, | |
SceKernelModuleInfo * | info | |||
) |
Query the information about a loaded module from its UID.
modid | - The UID of the loaded module. | |
info | - Pointer to a SceKernelModuleInfo structure. |
int sceKernelSelfStopUnloadModule | ( | int | unknown, | |
SceSize | argsize, | |||
void * | argp | |||
) |
Stop and unload the current module.
unknown | - Unknown (I've seen 1 passed). | |
argsize | - Size (in bytes) of the arguments that will be passed to module_stop(). | |
argp | - Pointer to arguments that will be passed to module_stop(). |
int sceKernelStartModule | ( | SceUID | modid, | |
SceSize | argsize, | |||
void * | argp, | |||
int * | status, | |||
SceKernelSMOption * | option | |||
) |
Start a loaded module.
modid | - The ID of the module returned from LoadModule. | |
argsize | - Length of the args. | |
argp | - A pointer to the arguments to the module. | |
status | - Returns the status of the start. | |
option | - Pointer to an optional SceKernelSMOption structure. |
int sceKernelStopModule | ( | SceUID | modid, | |
SceSize | argsize, | |||
void * | argp, | |||
int * | status, | |||
SceKernelSMOption * | option | |||
) |
Stop a running module.
modid | - The UID of the module to stop. | |
argsize | - The length of the arguments pointed to by argp. | |
argp | - Pointer to arguments to pass to the module's module_stop() routine. | |
status | - Return value of the module's module_stop() routine. | |
option | - Pointer to an optional SceKernelSMOption structure. |
int sceKernelStopUnloadSelfModule | ( | SceSize | argsize, | |
void * | argp, | |||
int * | status, | |||
SceKernelSMOption * | option | |||
) |
Stop and unload the current module.
argsize | - Size (in bytes) of the arguments that will be passed to module_stop(). | |
argp | - Poitner to arguments that will be passed to module_stop(). | |
status | - Return value from module_stop(). | |
option | - Pointer to an optional SceKernelSMOption structure. |
int sceKernelUnloadModule | ( | SceUID | modid | ) |
Unload a stopped module.
modid | - The UID of the module to unload. |