|
PSPSDK 2025-10-12
|
Functions | |
| int | pspSdkQueryModuleInfoV1 (SceUID uid, SceKernelModuleInfo *modinfo) |
| Query a modules information from its uid. | |
| int | pspSdkGetModuleIdList (SceUID *readbuf, int readbufsize, int *idcount) |
| Get the list of module IDs. | |
| int | pspSdkInstallNoDeviceCheckPatch (void) |
| Patch the sceModuleManager module to nullify LoadDeviceCheck() calls. | |
| int | pspSdkInstallNoPlainModuleCheckPatch (void) |
| Patch sceLoadCore module to remove loading plain module checks. | |
| int | pspSdkInstallKernelLoadModulePatch (void) |
| Patch sceLoadModuleWithApiType to remove the kernel check in loadmodule allowing all modules to load. | |
| SceUID | pspSdkLoadStartModule (const char *filename, int mpid) |
| Load a module and start it. | |
| SceUID | pspSdkLoadStartModuleWithArgs (const char *filename, int mpid, int argc, char *const argv[]) |
| Load a module and start it with arguments. | |
| void | pspSdkFixupImports (int moduleId) |
| Manually fixup library imports for late binding modules. | |
| int | pspSdkLoadInetModules () |
| Load Inet related modules. | |
| int | pspSdkInetInit () |
| Initialize Inet related modules. | |
| void | pspSdkInetTerm () |
| Terminate Inet related modules. | |
| int | pspSdkReferThreadStatusByName (const char *name, SceUID *pUID, SceKernelThreadInfo *pInfo) |
| Search for a thread with the given name and retrieve it's SceKernelThreadInfo struct. | |
| int | pspSdkReferSemaStatusByName (const char *name, SceUID *pUID, SceKernelSemaInfo *pInfo) |
| Search for a semaphore with the given name and retrieve it's SceKernelSemaInfo struct. | |
| int | pspSdkReferEventFlagStatusByName (const char *name, SceUID *pUID, SceKernelEventFlagInfo *pInfo) |
| Search for an event flag with the given name and retrieve it's SceKernelEventFlagInfo struct. | |
| int | pspSdkReferMboxStatusByName (const char *name, SceUID *pUID, SceKernelMbxInfo *pInfo) |
| Search for a message box with the given name and retrieve it's SceKernelMbxInfo struct. | |
| int | pspSdkReferVplStatusByName (const char *name, SceUID *pUID, SceKernelVplInfo *pInfo) |
| Search for a VPL with the given name and retrieve it's SceKernelVplInfo struct. | |
| int | pspSdkReferFplStatusByName (const char *name, SceUID *pUID, SceKernelFplInfo *pInfo) |
| Search for a FPL with the given name and retrieve it's SceKernelFplInfo struct. | |
| int | pspSdkReferMppStatusByName (const char *name, SceUID *pUID, SceKernelMppInfo *pInfo) |
| Search for a message pipe with the given name and retrieve it's SceKernelMppInfo struct. | |
| int | pspSdkReferCallbackStatusByName (const char *name, SceUID *pUID, SceKernelCallbackInfo *pInfo) |
| Search for a callback with the given name and retrieve it's SceKernelCallbackInfo struct. | |
| int | pspSdkReferVTimerStatusByName (const char *name, SceUID *pUID, SceKernelVTimerInfo *pInfo) |
| Search for a vtimer with the given name and retrieve it's SceKernelVTimerInfo struct. | |
| int | pspSdkReferThreadEventHandlerStatusByName (const char *name, SceUID *pUID, SceKernelThreadEventHandlerInfo *pInfo) |
| Search for a thread event handler with the given name and retrieve it's SceKernelThreadEventHandlerInfo struct. | |
| unsigned int | pspSdkDisableInterrupts (void) |
| Disable interrupts. | |
| void | pspSdkEnableInterrupts (unsigned int istate) |
| Enable interrupts. | |
| unsigned int | pspSdkSetK1 (unsigned int k1) |
| Set the processors K1 register to a known value. | |
| unsigned int | pspSdkGetK1 (void) |
| Get the current value of the processors K1 register. | |
| void | pspSdkDisableFPUExceptions (void) |
| Disable the CPUs FPU exceptions. | |
| SceSize | pspSdkTotalFreeUserMemSize (void) |
| Gets the amount of memory available in the user partition(s). | |
| void pspSdkDisableFPUExceptions | ( | void | ) |
Disable the CPUs FPU exceptions.
| unsigned int pspSdkDisableInterrupts | ( | void | ) |
Disable interrupts.
Referenced by pspSdkTotalFreeUserMemSize().
| void pspSdkEnableInterrupts | ( | unsigned int | istate | ) |
Enable interrupts.
| istate | - The interrupt state as returned from pspSdkDisableInterrupts |
Referenced by pspSdkTotalFreeUserMemSize().
| void pspSdkFixupImports | ( | int | moduleId | ) |
Manually fixup library imports for late binding modules.
| moduleId | - Id of the module to fixup |
References SceLibStubEntry::attr, Kprintf(), module_info, SceLibStubEntry::moduleName, SceLibStubEntry::nidList, NULL, SceLibStubEntry::numFuncs, SceLibStubEntry::numVars, sceKernelDcacheWritebackAll(), sceKernelFindModuleByUID(), sceKernelIcacheClearAll(), _scemoduleinfo::stub_end, _scemoduleinfo::stub_top, and SceLibStubEntry::stubs.
| unsigned int pspSdkGetK1 | ( | void | ) |
Get the current value of the processors K1 register.
| int pspSdkGetModuleIdList | ( | SceUID * | readbuf, |
| int | readbufsize, | ||
| int * | idcount ) |
Get the list of module IDs.
| readbuf | - Buffer to store the module list. |
| readbufsize | - Number of elements in the readbuffer. |
| idcount | - Returns the number of module ids |
References sceKernelGetModuleList(), and sceKernelModuleCount().
| int pspSdkInetInit | ( | ) |
Initialize Inet related modules.
| void pspSdkInetTerm | ( | ) |
Terminate Inet related modules.
| int pspSdkInstallKernelLoadModulePatch | ( | void | ) |
Patch sceLoadModuleWithApiType to remove the kernel check in loadmodule allowing all modules to load.
| int pspSdkInstallNoDeviceCheckPatch | ( | void | ) |
Patch the sceModuleManager module to nullify LoadDeviceCheck() calls.
| int pspSdkInstallNoPlainModuleCheckPatch | ( | void | ) |
Patch sceLoadCore module to remove loading plain module checks.
| int pspSdkLoadInetModules | ( | ) |
Load Inet related modules.
| SceUID pspSdkLoadStartModule | ( | const char * | filename, |
| int | mpid ) |
Load a module and start it.
| filename | - Path to the module. |
| mpid | - Memory parition ID to use to load the module int. |
References NULL, and pspSdkLoadStartModuleWithArgs().
| SceUID pspSdkLoadStartModuleWithArgs | ( | const char * | filename, |
| int | mpid, | ||
| int | argc, | ||
| char *const | argv[] ) |
Load a module and start it with arguments.
| filename | - Path to the module. |
| mpid | - Memory parition ID to use to load the module int. |
| argc | - Number of arguments to pass to start module |
| argv | - Array of arguments |
References SceKernelLMOption::access, MAX_ARGS, SceKernelLMOption::mpiddata, SceKernelLMOption::mpidtext, NULL, SceKernelLMOption::position, sceKernelLoadModule(), sceKernelStartModule(), and SceKernelLMOption::size.
Referenced by pspSdkLoadStartModule().
| int pspSdkQueryModuleInfoV1 | ( | SceUID | uid, |
| SceKernelModuleInfo * | modinfo ) |
Query a modules information from its uid.
| uid | - The UID of the module to query. |
| modinfo | - Pointer a module SceKernelModuleInfo structure. |
References SceKernelModuleInfo::attribute, SceModule::attribute, SceKernelModuleInfo::bss_size, SceModule::bss_size, SceKernelModuleInfo::data_size, SceModule::data_size, SceKernelModuleInfo::entry_addr, SceModule::entry_addr, SceKernelModuleInfo::gp_value, SceModule::gp_value, SceModule::modname, SceKernelModuleInfo::name, SceKernelModuleInfo::nsegment, SceModule::nsegment, NULL, sceKernelFindModuleByUID(), SceKernelModuleInfo::segmentaddr, SceModule::segmentaddr, SceKernelModuleInfo::segmentsize, SceModule::segmentsize, SceKernelModuleInfo::text_addr, SceModule::text_addr, SceKernelModuleInfo::text_size, SceModule::text_size, SceKernelModuleInfo::version, and SceModule::version.
| int pspSdkReferCallbackStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelCallbackInfo * | pInfo ) |
Search for a callback with the given name and retrieve it's SceKernelCallbackInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelMppInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Callback, and sceKernelReferCallbackStatus().
| int pspSdkReferEventFlagStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelEventFlagInfo * | pInfo ) |
Search for an event flag with the given name and retrieve it's SceKernelEventFlagInfo struct.
| name | - The name of the event flag to search for. |
| pUID | - If the event flag with the given name is found, it's SceUID is stored here. |
| pInfo | - If the event flag with the given name is found, it's SceKernelEventFlagInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_EventFlag, and sceKernelReferEventFlagStatus().
| int pspSdkReferFplStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelFplInfo * | pInfo ) |
Search for a FPL with the given name and retrieve it's SceKernelFplInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelFplInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Fpl, and sceKernelReferFplStatus().
| int pspSdkReferMboxStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelMbxInfo * | pInfo ) |
Search for a message box with the given name and retrieve it's SceKernelMbxInfo struct.
| name | - The name of the message box to search for. |
| pUID | - If the message box with the given name is found, it's SceUID is stored here. |
| pInfo | - If the message box with the given name is found, it's SceKernelMbxInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Mbox, and sceKernelReferMbxStatus().
| int pspSdkReferMppStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelMppInfo * | pInfo ) |
Search for a message pipe with the given name and retrieve it's SceKernelMppInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelMppInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Mpipe, and sceKernelReferMsgPipeStatus().
| int pspSdkReferSemaStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelSemaInfo * | pInfo ) |
Search for a semaphore with the given name and retrieve it's SceKernelSemaInfo struct.
| name | - The name of the sema to search for. |
| pUID | - If the sema with the given name is found, it's SceUID is stored here. |
| pInfo | - If the sema with the given name is found, it's SceKernelSemaInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Semaphore, and sceKernelReferSemaStatus().
| int pspSdkReferThreadEventHandlerStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelThreadEventHandlerInfo * | pInfo ) |
Search for a thread event handler with the given name and retrieve it's SceKernelThreadEventHandlerInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelThreadEventHandlerInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_ThreadEventHandler, and sceKernelReferThreadEventHandlerStatus().
| int pspSdkReferThreadStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelThreadInfo * | pInfo ) |
Search for a thread with the given name and retrieve it's SceKernelThreadInfo struct.
| name | - The name of the thread to search for. |
| pUID | - If the thread with the given name is found, it's SceUID is stored here. |
| pInfo | - If the thread with the given name is found, it's SceKernelThreadInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Thread, and sceKernelReferThreadStatus().
| int pspSdkReferVplStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelVplInfo * | pInfo ) |
Search for a VPL with the given name and retrieve it's SceKernelVplInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelVplInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_Vpl, and sceKernelReferVplStatus().
| int pspSdkReferVTimerStatusByName | ( | const char * | name, |
| SceUID * | pUID, | ||
| SceKernelVTimerInfo * | pInfo ) |
Search for a vtimer with the given name and retrieve it's SceKernelVTimerInfo struct.
| name | - The name of to search for. |
| pUID | - If the given name is found, it's SceUID is stored here. |
| pInfo | - If the given name is found, it's SceKernelVTimerInfo data is stored here. |
References _ThreadInfoSkel::name, NULL, SCE_KERNEL_TMID_VTimer, and sceKernelReferVTimerStatus().
| unsigned int pspSdkSetK1 | ( | unsigned int | k1 | ) |
Set the processors K1 register to a known value.
| k1 | - The k1 value to set |
| SceSize pspSdkTotalFreeUserMemSize | ( | void | ) |
Gets the amount of memory available in the user partition(s).
References NULL, pspSdkDisableInterrupts(), and pspSdkEnableInterrupts().