summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorDavee2018-10-28 15:45:15 +0000
committerSunguk Lee2018-10-29 01:31:35 +0900
commit62a740a93561794586ae010fd9eba85fb3003aca (patch)
tree2475d430a7d2e15099144cad3f38e8e63a96098f /include/kernel
parentUpdate pss.h (#356) (diff)
downloadvds-libraries-62a740a93561794586ae010fd9eba85fb3003aca.tar.gz
add ksceKernelGetProcessMainModule
ksceKernelGetProcessMainModule queries the kernel for the module id for a given process id.
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/kernel/modulemgr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/kernel/kernel/modulemgr.h b/include/kernel/kernel/modulemgr.h
index c28e271..2ecc204 100644
--- a/include/kernel/kernel/modulemgr.h
+++ b/include/kernel/kernel/modulemgr.h
@@ -98,6 +98,13 @@ int sceKernelUmountBootfs(void);
int sceKernelSearchModuleByName(const char* module_name, const char* path, int pid);
+/**
+ * @brief Get the main module for a given process.
+ * @param pid The process to query.
+ * @return the UID of the module else < 0 for an error.
+ */
+SceUID sceKernelGetProcessMainModule(SceUID pid);
+
#ifdef __cplusplus
}
#endif