Data Structures | |
struct | SceKernelSysClock |
64-bit system clock type. More... | |
struct | SceKernelThreadOptParam |
Additional options used when creating threads. More... | |
struct | SceKernelThreadInfo |
Structure to hold the status information for a thread. More... | |
struct | SceKernelThreadRunStatus |
Statistics about a running thread. More... | |
struct | SceKernelSemaOptParam |
Additional options used when creating semaphores. More... | |
struct | SceKernelSemaInfo |
Current state of a semaphore. More... | |
struct | _SceKernelCallbackInfo |
Structure to hold the status information for a callback. More... | |
struct | _SceKernelSystemStatus |
Structure to contain the system status returned by sceKernelReferSystemStatus. More... | |
struct | _SceKernelEventFlagInfo |
Structure to hold the event flag information. More... | |
struct | SceKernelMbxOptParam |
Additional options used when creating messageboxes. More... | |
struct | SceKernelMbxInfo |
Current state of a messagebox. More... | |
Defines | |
#define | THREAD_ATTR_VFPU PSP_THREAD_ATTR_VFPU |
#define | THREAD_ATTR_USER PSP_THREAD_ATTR_USER |
Typedefs | |
typedef SceKernelSysClock | SceKernelSysClock |
64-bit system clock type. | |
typedef int(* | SceKernelThreadEntry )(SceSize args, void *argp) |
typedef SceKernelThreadOptParam | SceKernelThreadOptParam |
Additional options used when creating threads. | |
typedef SceKernelThreadInfo | SceKernelThreadInfo |
Structure to hold the status information for a thread. | |
typedef SceKernelThreadRunStatus | SceKernelThreadRunStatus |
Statistics about a running thread. | |
typedef SceKernelSemaOptParam | SceKernelSemaOptParam |
Additional options used when creating semaphores. | |
typedef SceKernelSemaInfo | SceKernelSemaInfo |
Current state of a semaphore. | |
typedef int(* | SceKernelCallbackFunction )(int arg1, int arg2, void *arg) |
Callback function prototype. | |
typedef _SceKernelCallbackInfo | SceKernelCallbackInfo |
typedef _SceKernelSystemStatus | SceKernelSystemStatus |
typedef _SceKernelEventFlagInfo | SceKernelEventFlagInfo |
typedef SceKernelMbxOptParam | SceKernelMbxOptParam |
Additional options used when creating messageboxes. | |
typedef SceKernelMbxInfo | SceKernelMbxInfo |
Current state of a messagebox. | |
Enumerations | |
enum | PspThreadAttributes { PSP_THREAD_ATTR_VFPU = 0x00004000, PSP_THREAD_ATTR_USER = 0x80000000, PSP_THREAD_ATTR_USBWLAN = 0xa0000000, PSP_THREAD_ATTR_VSH = 0xc0000000, PSP_THREAD_ATTR_SCRATCH_SRAM = 0x00008000, PSP_THREAD_ATTR_NO_FILLSTACK = 0x00100000, PSP_THREAD_ATTR_CLEAR_STACK = 0x00200000 } |
Attribute for threads. More... | |
enum | SceKernelIdListType { SCE_KERNEL_TMID_Thread = 1, SCE_KERNEL_TMID_Semaphore = 2, SCE_KERNEL_TMID_EventFlag = 3, SCE_KERNEL_TMID_Mbox = 4, SCE_KERNEL_TMID_Vpl = 5, SCE_KERNEL_TMID_Fpl = 6, SCE_KERNEL_TMID_Mpipe = 7, SCE_KERNEL_TMID_Callback = 8, SCE_KERNEL_TMID_ThreadEventHandler = 9, SCE_KERNEL_TMID_Alarm = 10, SCE_KERNEL_TMID_VTimer = 11, SCE_KERNEL_TMID_SleepThread = 64, SCE_KERNEL_TMID_DelayThread = 65, SCE_KERNEL_TMID_SuspendThread = 66, SCE_KERNEL_TMID_DormantThread = 67 } |
Threadman types for sceKernelGetThreadmanIdList. More... | |
Functions | |
SceUID | sceKernelCreateThread (const char *name, SceKernelThreadEntry entry, int initPriority, int stackSize, SceUInt attr, SceKernelThreadOptParam *option) |
Create a thread. | |
int | sceKernelDeleteThread (SceUID thid) |
Delate a thread. | |
int | sceKernelStartThread (SceUID thid, SceSize arglen, void *argp) |
Start a created thread. | |
int | sceKernelExitThread (int status) |
Exit a thread. | |
int | sceKernelExitDeleteThread (int status) |
Exit a thread and delete itself. | |
int | sceKernelTerminateThread (SceUID thid) |
Terminate a thread. | |
int | sceKernelTerminateDeleteThread (SceUID thid) |
Terminate and delete a thread. | |
int | sceKernelSleepThread (void) |
Sleep thread. | |
void | sceKernelSleepThreadCB (void) |
Sleep thread but service any callbacks as necessary. | |
int | sceKernelWakeupThread (SceUID thid) |
Wake a thread previously put into the sleep state. | |
int | sceKernelCancelWakeupThread (SceUID thid) |
Cancel a thread that was to be woken with sceKernelWakeupThread. | |
int | sceKernelSuspendThread (SceUID thid) |
Suspend a thread. | |
int | sceKernelResumeThread (SceUID thid) |
Resume a thread previously put into a suspended state with sceKernelSuspendThread. | |
int | sceKernelWaitThreadEnd (SceUID thid, SceUInt *timeout) |
Wait until a thread has ended. | |
int | sceKernelWaitThreadEndCB (SceUID thid, SceUInt *timeout) |
Wait until a thread has ended and handle callbacks if necessary. | |
void | sceKernelDelayThread (SceUInt delay) |
Delay the current thread by a specified number of microseconds. | |
void | sceKernelDelayThreadCB (SceUInt delay) |
Delay the current thread by a specified number of microseconds and handle any callbacks. | |
int | sceKernelChangeCurrentThreadAttr (int unknown, SceUInt attr) |
Modify the attributes of the current thread. | |
int | sceKernelChangeThreadPriority (SceUID thid, int priority) |
Change the threads current priority. | |
int | sceKernelGetThreadId (void) |
Get the current thread Id. | |
int | sceKernelReferThreadStatus (SceUID thid, SceKernelThreadInfo *info) |
Get the status information for the specified thread. | |
int | sceKernelReferThreadRunStatus (SceUID thid, SceKernelThreadRunStatus *status) |
Retrive the runtime status of a thread. | |
SceUID | sceKernelCreateSema (const char *name, SceUInt attr, int initVal, int maxVal, SceKernelSemaOptParam *option) |
Creates a new semaphore. | |
int | sceKernelDeleteSema (SceUID semaid) |
Destroy a semaphore. | |
int | sceKernelSignalSema (SceUID semaid, int signal) |
Send a signal to a semaphore. | |
int | sceKernelWaitSema (SceUID semaid, int signal, SceUInt *timeout) |
Lock a semaphore. | |
int | sceKernelWaitSemaCB (SceUID semaid, int signal, SceUInt *timeout) |
Lock a semaphore a handle callbacks if necessary. | |
int | sceKernelPollSema (SceUID semaid, int signal) |
Poll a sempahore. | |
int | sceKernelReferSemaStatus (SceUID semaid, SceKernelSemaInfo *info) |
Retrieve information about a semaphore. | |
int | sceKernelCreateCallback (const char *name, SceKernelCallbackFunction func, void *arg) |
Create callback. | |
int | sceKernelCreateEventFlag (const char *name, int unk1, int bits, int unk3) |
Create an event flag. | |
int | sceKernelSetEventFlag (int evid, u32 bits) |
Set an event flag bit pattern. | |
int | sceKernelPollEventFlag (int evid, u32 bits, u32 wait, u32 *outBits) |
Poll an event flag for a giveb bit pattern. | |
int | sceKernelDeleteEventFlag (int evid) |
Delete an event flag. | |
int | sceKernelGetThreadmanIdList (enum SceKernelIdListType type, SceUID *readbuf, int readbufsize, int *idcount) |
Get a list of UIDs from threadman. | |
int | sceKernelReferCallbackStatus (SceUID cb, SceKernelCallbackInfo *status) |
Gets the status of a specified callback. | |
int | sceKernelReferSystemStatus (SceKernelSystemStatus *status) |
Get the current system status. | |
int | sceKernelReferEventFlagStatus (SceUID event, SceKernelEventFlagInfo *status) |
Get the status of an event flag. | |
SceUID | sceKernelCreateMbx (const char *name, SceUInt attr, SceKernelMbxOptParam *option) |
Creates a new messagebox. | |
int | sceKernelDeleteMbx (SceUID mbxid) |
Destroy a messagebox. | |
int | sceKernelSendMbx (SceUID mbxid, void *message) |
Send a message to a messagebox. | |
int | sceKernelReceiveMbx (SceUID mbxid, void **pmessage, SceUInt *timeout) |
Wait for a message to arrive in a messagebox. | |
int | sceKernelReceiveMbxCB (SceUID mbxid, void **pmessage, SceUInt *timeout) |
Wait for a message to arrive in a messagebox and handle callbacks if necessary. | |
int | sceKernelPollMbx (SceUID mbxid, void **pmessage) |
Check if a message has arrived in a messagebox. | |
int | sceKernelCancelReceiveMbx (SceUID mbxid, int *pnum) |
Abort all wait operations on a messagebox. | |
int | sceKernelReferMbxStatus (SceUID mbxid, SceKernelMbxInfo *info) |
Retrieve information about a messagebox. |
|
|
|
|
|
Callback function prototype.
|
|
|
|
|
|
Current state of a messagebox.
|
|
Additional options used when creating messageboxes.
|
|
Current state of a semaphore.
|
|
Additional options used when creating semaphores.
|
|
64-bit system clock type.
|
|
|
|
|
|
Structure to hold the status information for a thread.
|
|
Additional options used when creating threads.
|
|
Statistics about a running thread.
|
|
|
Threadman types for sceKernelGetThreadmanIdList.
|
|
Abort all wait operations on a messagebox.
|
|
Cancel a thread that was to be woken with sceKernelWakeupThread.
|
|
Modify the attributes of the current thread.
|
|
Change the threads current priority.
|
|
Create callback.
|
|
Create an event flag.
|
|
Creates a new messagebox.
|
|
Creates a new semaphore.
|
|
Create a thread.
|
|
Delay the current thread by a specified number of microseconds.
|
|
Delay the current thread by a specified number of microseconds and handle any callbacks.
|
|
Delete an event flag.
|
|
Destroy a messagebox.
|
|
Destroy a semaphore.
|
|
Delate a thread.
|
|
Exit a thread and delete itself.
|
|
Exit a thread.
|
|
Get the current thread Id.
|
|
Get a list of UIDs from threadman. Allows you to enumerate resources such as threads or semaphores.
|
|
Poll an event flag for a giveb bit pattern.
|
|
Check if a message has arrived in a messagebox.
|
|
Poll a sempahore.
|
|
Wait for a message to arrive in a messagebox.
|
|
Wait for a message to arrive in a messagebox and handle callbacks if necessary.
|
|
Gets the status of a specified callback.
|
|
Get the status of an event flag.
|
|
Retrieve information about a messagebox.
|
|
Retrieve information about a semaphore.
|
|
Get the current system status.
|
|
Retrive the runtime status of a thread.
|
|
Get the status information for the specified thread.
|
|
Resume a thread previously put into a suspended state with sceKernelSuspendThread.
|
|
Send a message to a messagebox.
|
|
Set an event flag bit pattern.
|
|
Send a signal to a semaphore.
|
|
Sleep thread.
|
|
Sleep thread but service any callbacks as necessary.
|
|
Start a created thread.
|
|
Suspend a thread.
|
|
Terminate and delete a thread.
|
|
Terminate a thread.
|
|
Lock a semaphore.
|
|
Lock a semaphore a handle callbacks if necessary.
|
|
Wait until a thread has ended.
|
|
Wait until a thread has ended and handle callbacks if necessary.
|
|
Wake a thread previously put into the sleep state.
|