diff options
author | Davee | 2018-10-28 15:57:17 +0000 |
---|---|---|
committer | Davee | 2018-10-28 15:57:21 +0000 |
commit | a2187a4befbcef53dd3260e8b302ce8e1281d7d6 (patch) | |
tree | f57664bcbe40fe9a2a9042c184fd636e0a777981 | |
parent | Update pss.h (#356) (diff) | |
download | vds-libraries-a2187a4befbcef53dd3260e8b302ce8e1281d7d6.tar.gz |
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.
-rw-r--r-- | include/kernel/kernel/processmgr.h | 8 | ||||
-rw-r--r-- | nids/360/SceProcessmgr.yml | 1 |
2 files changed, 9 insertions, 0 deletions
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 diff --git a/nids/360/SceProcessmgr.yml b/nids/360/SceProcessmgr.yml index 92bd84e..063f562 100644 --- a/nids/360/SceProcessmgr.yml +++ b/nids/360/SceProcessmgr.yml @@ -40,6 +40,7 @@ modules: sceKernelGetProcessInfo: 0x0AFF3EAE sceKernelGetProcessLocalStorageAddr: 0xEE694840 sceKernelGetProcessLocalStorageAddrForPid: 0xAF80F39C + sceKernelGetProcessStatus: 0x65B120B8 sceKernelGetProcessTimeCore: 0xEC283166 sceKernelGetProcessTimeLowCore: 0x02179E12 sceKernelGetProcessTimeWideCore: 0x82D94BE9 |