summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Lu2016-11-12 14:41:14 -0800
committerYifan Lu2016-11-12 14:41:14 -0800
commit9cb0355dd62dde8541e7522a54df6e4b2ddcc070 (patch)
tree94da70f67e951cb4e2aba2e13fe6b2578ee4c8b9
parentFix usbserial function names (#84) (diff)
downloadvds-libraries-9cb0355dd62dde8541e7522a54df6e4b2ddcc070.tar.gz
Added more kernel modulemgr imports
-rw-r--r--include/kernel/kernel/modulemgr.h11
-rw-r--r--nids/360/SceKernelModulemgr.yml6
2 files changed, 12 insertions, 5 deletions
diff --git a/include/kernel/kernel/modulemgr.h b/include/kernel/kernel/modulemgr.h
index 67f5ab5..5d7a956 100644
--- a/include/kernel/kernel/modulemgr.h
+++ b/include/kernel/kernel/modulemgr.h
@@ -78,16 +78,19 @@ int sceKernelGetModuleInternal(SceUID modid, void **module);
int sceKernelGetSystemSwVersion(SceKernelFwInfo *data);
+int sceKernelLoadStartModule(const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status);
SceUID sceKernelLoadModule(const char *path, int flags, SceKernelLMOption *option);
int sceKernelStartModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status);
+int sceKernelUnloadModule(SceUID modid, int flags, SceKernelULMOption *option);
+int sceKernelStopModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
+int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
SceUID sceKernelLoadStartSharedModuleForPid(SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status);
SceUID sceKernelLoadStartModuleForPid(SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status);
SceUID sceKernelLoadModuleForPid(SceUID pid, const char *path, int flags, SceKernelLMOption *option);
-
-int sceKernelUnloadModule(SceUID modid, int flags);
-
-int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
+SceUID sceKernelUnloadModuleForPid(SceUID pid, SceUID modid, int flags, SceKernelULMOption *option);
+int sceKernelStopModuleForPid(SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
+int sceKernelStopUnloadModuleForPid(SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
#ifdef __cplusplus
}
diff --git a/nids/360/SceKernelModulemgr.yml b/nids/360/SceKernelModulemgr.yml
index d889f7b..9f95892 100644
--- a/nids/360/SceKernelModulemgr.yml
+++ b/nids/360/SceKernelModulemgr.yml
@@ -18,7 +18,9 @@ modules:
sceKernelLoadStartModuleForPid: 0x9D953C22
sceKernelLoadStartSharedModuleForPid: 0xE2ADEF8D
sceKernelStartModule: 0x0675B682
- sceKernelStopUnloadModule: 0x100DAEB9
+ sceKernelStopModule: 0x100DAEB9
+ sceKernelStopUnloadModule: 0x03B30B7E
+ sceKernelStopUnloadModuleForPid: 0x49A3EDC7
sceKernelUnloadModule: 0x728E72A6
SceModulemgrForKernel:
nid: 0xC445FA63
@@ -27,3 +29,5 @@ modules:
sceKernelGetModuleInternal: 0xFE303863
sceKernelGetModuleList: 0x97CF7B4E
sceKernelLoadModuleForPid: 0xFA21D8CB
+ sceKernelStopModuleForPid: 0x7BB4CE54
+ sceKernelUnloadModuleForPid: 0x5972E2CC