From 62a740a93561794586ae010fd9eba85fb3003aca Mon Sep 17 00:00:00 2001 From: Davee Date: Sun, 28 Oct 2018 15:45:15 +0000 Subject: add ksceKernelGetProcessMainModule ksceKernelGetProcessMainModule queries the kernel for the module id for a given process id. --- include/kernel/kernel/modulemgr.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 -- cgit v1.2.3