vitasdk
Documentation of the vitasdk
modulemgr.h File Reference

Go to the source code of this file.

Data Structures

struct  SceKernelModuleName
 
struct  SceKernelSegmentInfo2
 
struct  SceKernelModuleListInfo
 
struct  SceKernelModuleExportEntry
 
struct  SceKernelModuleImportNonlinkedInfo
 
struct  SceSelfAppInfo
 
struct  SceLoadProcessParam
 
struct  SceKernelFunctionShimInfo
 
struct  SceKernelLibraryShimInfo
 
struct  SceKernelCompatibilityShimInfo
 
union  SceKernelModuleListInfo.__unnamed26__
 
struct  SceKernelModuleListInfo.__unnamed26__.seg1
 
struct  SceKernelModuleListInfo.__unnamed26__.seg2
 
struct  SceKernelModuleListInfo.__unnamed26__.seg3
 
struct  SceKernelModuleListInfo.__unnamed26__.seg4
 

Macros

#define ksceKernelGetModuleInternal   ksceKernelGetModuleCB
 
#define ksceKernelGetProcessMainModule   ksceKernelGetModuleIdByPid
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x1C, SceKernelModuleName)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceKernelSegmentInfo2)
 
 VITASDK_BUILD_ASSERT_EQ (0xB0, SceKernelModuleListInfo)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceKernelModuleExportEntry)
 
 VITASDK_BUILD_ASSERT_EQ (0x124, SceKernelModuleImportNonlinkedInfo)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceSelfAppInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x7C, SceLoadProcessParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceKernelFunctionShimInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelLibraryShimInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelCompatibilityShimInfo)
 
void ksceKernelRegisterSyscall (SceSize syscall_id, const void *func)
 Register syscall function. More...
 
void ksceKernelRegisterModulesAfterBoot (void)
 Setup kernel for modulemgr. More...
 
int ksceKernelGetModuleList (SceUID pid, int flags1, int flags2, SceUID *modids, SceSize *num)
 Get module id list. More...
 
int ksceKernelGetModuleInfoForDebugger (SceUID pid, SceKernelModuleListInfo *infolists, SceSize *num)
 
int ksceKernelGetModuleInfo (SceUID pid, SceUID modid, SceKernelModuleInfo *info)
 Get module info. More...
 
int ksceKernelGetModuleInfoMinByAddr (SceUID pid, const void *module_addr, uint32_t *module_nid, const void **program_text_addr, SceKernelModuleName *module_name)
 Get module info mini by module address. More...
 
int ksceKernelGetModuleCB (SceUID modid, void **info)
 Get module info (internal) More...
 
int ksceKernelGetModuleCBByAddr (SceUID pid, const void *module_addr, void **info)
 Get module info by address (internal) More...
 
SceUID ksceKernelGetModuleIdByAddrForDebugger (SceUID pid, const void *module_addr)
 Get module id by module address. More...
 
SceUID ksceKernelSearchModuleByName (const char *module_name)
 search kernel module by module name More...
 
int ksceKernelGetSystemSwVersion (SceKernelFwInfo *data)
 Get fw info. More...
 
SceUID ksceKernelLoadModule (const char *path, int flags, SceKernelLMOption *option)
 load module (kernel only) More...
 
int ksceKernelStartModule (SceUID modid, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 start module (kernel only) More...
 
SceUID ksceKernelLoadStartModule (const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 load and start module (kernel only) More...
 
int ksceKernelStopModule (SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 stop module (kernel only) More...
 
int ksceKernelUnloadModule (SceUID modid, int flags, SceKernelULMOption *option)
 unload module (kernel only) More...
 
int ksceKernelStopUnloadModule (SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 stop and unload module (kernel only) More...
 
SceUID ksceKernelLoadModuleForPid (SceUID pid, const char *path, int flags, SceKernelLMOption *option)
 load module More...
 
int ksceKernelStartModuleForPid (SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 start module More...
 
SceUID ksceKernelLoadStartModuleForPid (SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 load and start module More...
 
int ksceKernelStopModuleForPid (SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 stop module More...
 
int ksceKernelUnloadModuleForPid (SceUID pid, SceUID modid, int flags, SceKernelULMOption *option)
 unload module More...
 
int ksceKernelStopUnloadModuleForPid (SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 stop and unload module More...
 
SceUID ksceKernelLoadStartSharedModuleForPid (SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 load and start module as shared module More...
 
int ksceKernelStopUnloadSharedModuleForPid (SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 stop and unload module as shared module More...
 
int ksceKernelMountBootfs (const char *bootImagePath)
 mount bootfs (load bootfs module) More...
 
int ksceKernelUmountBootfs (void)
 unmount bootfs (unload bootfs module) More...
 
SceUID ksceKernelGetModuleIdByPid (SceUID pid)
 Get the main module id for a given process. More...
 
int ksceKernelGetModulePath (SceUID modid, char *path, SceSize pathlen)
 Get the module path. More...
 
int ksceKernelGetLibraryInfoForDebugger (SceUID pid, SceUID library_id, SceKernelModuleLibraryInfo *info)
 Get library info. More...
 
void ksceKernelFinalizeKbl (void)
 
int ksceKernelGetExportedLibraryListInModule (SceUID pid, SceUID modid, SceUID *library_ids, SceSize *num)
 
int ksceKernelGetImportedLibraryListInModule (SceUID pid, SceUID modid, SceUID *library_ids, SceSize *num)
 
int ksceKernelGetLibEntCBListForSyslibtrace (void **ppList, SceSize *num)
 
int ksceKernelGetLibraryList (SceUID pid, SceUID *library_ids, SceSize *num)
 
int ksceKernelGetLibraryClientList (SceUID pid, SceUID library_id, SceUID *modids, SceSize *num, SceSize cpy_skip_num)
 
int ksceKernelGetLibraryDBFlags (SceUID pid, int *pFlags)
 
int ksceKernelGetLibraryExportInfoForDebugger (SceUID pid, SceUID library_id, SceKernelModuleExportEntry *list, SceSize *num, SceSize cpy_skip_num)
 
int ksceKernelGetLostLibraryInfo (SceUID pid, SceUID modid, SceNID libnid, SceKernelModuleImportNonlinkedInfo *info)
 
int ksceKernelGetLostLibraryList (SceUID pid, void *a2, SceSize *num)
 
int ksceKernelGetLostLibraryListInModule (SceUID pid, SceUID modid, void *pList, SceSize *num)
 
int ksceKernelGetMetaDataForDebugger (SceUID pid, SceUID uModuleId, void **start, void **stop)
 
void * ksceKernelGetModuleEntryPoint (SceUID modid)
 
int ksceKernelGetModuleFingerprint (SceUID moduleId, SceUInt32 *pFingerprint)
 
int ksceKernelGetModuleIsSharedByAddr (SceUID pid, void *addr)
 
int ksceKernelGetProgramIdentificationInfo (const char *path, SceUInt64 *pAuthid, SceSelfAppInfo *pInfo)
 
int ksceKernelGetStubInfoForDebugger (SceUID pid, SceUID stubid, void *a3)
 
int ksceKernelGetStubList (SceUID pid, SceUID *stub, SceSize *num)
 
int ksceKernelGetStubNidTableForDebugger (SceUID pid, SceUID stubid, void *a3, SceSize *num, SceSize cpy_skip_num)
 
int ksceKernelLoadPreloadingModules (SceUID pid, const SceLoadProcessParam *pParam, int flags)
 
SceUID ksceKernelLoadProcessImage (SceUID pid, const char *path, int flags, SceSelfAuthInfo *auth_info, SceLoadProcessParam *param, SceKernelCompatibilityShimInfo *shim_info)
 
int ksceKernelLoadPtLoadSegForFwloader (const char *path, int e_phnum, void *buffer, SceSize bufsize, int zero_unk, SceSize *bytes_read)
 
int ksceKernelModuleUnloadMySelf (void)
 
int ksceKernelStartPreloadingModules (SceUID pid)
 
int ksceKernelUnloadProcessModules (SceUID pid)