diff options
Diffstat (limited to '')
-rw-r--r-- | include/kernel/kernel/modulemgr.h | 7 | ||||
-rw-r--r-- | include/kernel/kernel/processmgr.h | 7 | ||||
-rw-r--r-- | include/kernel/kernel/threadmgr.h | 17 |
3 files changed, 31 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 diff --git a/include/kernel/kernel/processmgr.h b/include/kernel/kernel/processmgr.h index af89047..b5626a1 100644 --- a/include/kernel/kernel/processmgr.h +++ b/include/kernel/kernel/processmgr.h @@ -26,6 +26,13 @@ void *sceKernelGetProcessLocalStorageAddr(int key); int sceKernelGetProcessLocalStorageAddrForPid(SceUID pid, int key, void **out_addr, int create_if_doesnt_exist); /** + * @brief Resume a suspended process. + * @param[in] pid The process to resume. + * @return Zero on success, < 0 on error. + */ +int sceKernelProcessResume(SceUID pid); + +/** * @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. diff --git a/include/kernel/kernel/threadmgr.h b/include/kernel/kernel/threadmgr.h index 391f277..66fc0f2 100644 --- a/include/kernel/kernel/threadmgr.h +++ b/include/kernel/kernel/threadmgr.h @@ -845,6 +845,23 @@ typedef int (*SceKernelWorkQueueWorkFunction)(void *args); */ int sceKernelEnqueueWorkQueue(SceUID uid, const char *name, SceKernelWorkQueueWorkFunction work, void *args); +/** + * @brief Get the main thread for a given process. + * @param[in] pid The process id to query for. + * @return The thread UID on success, else < 0 on error. + */ +SceUID sceKernelGetProcessMainThread(SceUID pid); + +/** + * @brief Retrieve 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 |