PSPSDK 2024-10-31
|
This module contains routines to threads in the kernel. More...
Data Structures | |
struct | SceThreadContext |
Thread context Structues for the thread context taken from florinsasu's post on the forums. More... | |
struct | SceSCContext |
struct | SceKernelThreadKInfo |
Structure to hold the status information for a thread (kernel form) 1.5 form. More... | |
Typedefs | |
typedef struct SceKernelThreadKInfo | SceKernelThreadKInfo |
Structure to hold the status information for a thread (kernel form) 1.5 form. | |
Functions | |
int | sceKernelSuspendAllUserThreads (void) |
Suspend all user mode threads in the system. | |
int | sceKernelIsUserModeThread (void) |
Checks if the current thread is a usermode thread. | |
int | sceKernelGetUserLevel (void) |
Get the user level of the current thread. | |
unsigned int | sceKernelGetSyscallRA (void) |
Get the return address of the current thread's syscall. | |
int | sceKernelGetThreadKernelStackFreeSize (SceUID thid) |
Get the free stack space on the kernel thread. | |
int | sceKernelCheckThreadKernelStack (void) |
Check the thread kernel stack. | |
int | sceKernelExtendKernelStack (int type, void(*cb)(void *), void *arg) |
Extend the kernel thread stack. | |
unsigned int | sceKernelGetSystemStatusFlag (void) |
Get the system status flag. | |
int | sceKernelAllocateKTLS (int id, int(*cb)(unsigned int *size, void *arg), void *arg) |
Setup the KTLS allocator. | |
int | sceKernelFreeKTLS (int id) |
Free the KTLS allocator. | |
void * | sceKernelGetKTLS (int id) |
Get the KTLS of the current thread. | |
void * | sceKernelGetThreadKTLS (int id, SceUID thid, int mode) |
Get the KTLS of a thread. | |
int | ThreadManForKernel_2D69D086 (SceUID uid, SceKernelThreadKInfo *info) |
Refer kernel version of thread information. | |
This module contains routines to threads in the kernel.
Structure to hold the status information for a thread (kernel form) 1.5 form.
Setup the KTLS allocator.
id | - The ID of the allocator |
cb | - The allocator callback |
arg | - User specified arg passed to the callback |
Extend the kernel thread stack.
type | - The type of block allocation. One of PspSysMemBlockTypes |
cb | - A pointer to a callback function |
arg | - A pointer to a user specified argument |
Free the KTLS allocator.
id | - The allocation id returned from AllocateKTLS |
Get the KTLS of the current thread.
id | - The allocation id returned from AllocateKTLS |
Get the return address of the current thread's syscall.
Get the system status flag.
Get the free stack space on the kernel thread.
thid | - The UID of the thread |
Get the KTLS of a thread.
id | - The allocation id returned from AllocateKTLS |
thid | - The thread is, 0 for current thread |
mode | - Perhaps? Sees to be set to 0 or 1 |
Get the user level of the current thread.
Checks if the current thread is a usermode thread.
Suspend all user mode threads in the system.
int ThreadManForKernel_2D69D086 | ( | SceUID | uid, |
SceKernelThreadKInfo * | info | ||
) |
Refer kernel version of thread information.
uid | - UID to find |
info | - Pointer to info structure, ensure size is set before calling |