From a2187a4befbcef53dd3260e8b302ce8e1281d7d6 Mon Sep 17 00:00:00 2001 From: Davee Date: Sun, 28 Oct 2018 15:57:17 +0000 Subject: add ksceKernelGetProcessStatus This kernel service queries the status of a given process. I'm unsure what exactly the bits represent. It seems 0x10 is related to suspension status, but I'm not confident in that assumption. --- include/kernel/kernel/processmgr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/kernel') diff --git a/include/kernel/kernel/processmgr.h b/include/kernel/kernel/processmgr.h index f203eed..af89047 100644 --- a/include/kernel/kernel/processmgr.h +++ b/include/kernel/kernel/processmgr.h @@ -25,6 +25,14 @@ int sceKernelCreateProcessLocalStorage(const char *name, SceSize size); void *sceKernelGetProcessLocalStorageAddr(int key); int sceKernelGetProcessLocalStorageAddrForPid(SceUID pid, int key, void **out_addr, int create_if_doesnt_exist); +/** + * @brief Get the status of a given process. + * @param[in] pid The process ID to query. + * @param[out] status The bit field status of the process. + * @return Zero on success, < 0 on error. + */ +int sceKernelGetProcessStatus(SceUID pid, int *status); + #ifdef __cplusplus } #endif -- cgit v1.2.3