summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorDavee2018-10-28 16:06:42 +0000
committerSunguk Lee2018-10-29 01:33:31 +0900
commit1497c9b317a8cdc41838c167e2fd8d8998bfe487 (patch)
treee2deef85512834e434477e947cc0b998c9676744 /include/kernel
parentadd ksceAppMgrKillProcess (diff)
downloadvds-libraries-1497c9b317a8cdc41838c167e2fd8d8998bfe487.tar.gz
add ksceKernelGetThreadIdList
ksceKernelGetThreadIdList is a kernel service used to query and obtain the number of thread within a process.
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/kernel/threadmgr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel/kernel/threadmgr.h b/include/kernel/kernel/threadmgr.h
index 391f277..c329544 100644
--- a/include/kernel/kernel/threadmgr.h
+++ b/include/kernel/kernel/threadmgr.h
@@ -845,6 +845,16 @@ typedef int (*SceKernelWorkQueueWorkFunction)(void *args);
*/
int sceKernelEnqueueWorkQueue(SceUID uid, const char *name, SceKernelWorkQueueWorkFunction work, void *args);
+/**
+ * @brief Retreive a list of all threads belonging to a process.
+ * @param[in] pid The process to query.
+ * @param[out] ids The list of thread ids. Can be NULL if output is not required.
+ * @param[in] n The max number of thread ids to copy out.
+ * @param[out] copy_count The number of thread ids copied.
+ * @return The number of threads within the process, else < 0 on error.
+ */
+int sceKernelGetThreadIdList(SceUID pid, SceUID *ids, int n, int *copy_count);
+
#ifdef __cplusplus
}
#endif