|
PSPSDK 2025-10-12
|
Library imports for the kernel threading library. More...
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 | SceLwMutexWorkarea |
| Struct as workarea for lightweight mutex. More... | |
| struct | SceKernelEventFlagInfo |
| Structure to hold the event flag information. More... | |
| struct | SceKernelEventFlagOptParam |
| struct | SceKernelMbxOptParam |
| Additional options used when creating messageboxes. More... | |
| struct | SceKernelMbxInfo |
| Current state of a messagebox. More... | |
| struct | SceKernelMsgPacket |
| Header for a message box packet. More... | |
| struct | SceKernelAlarmInfo |
| Struct containing alarm info. 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 | SceKernelMppInfo |
| Message Pipe status info. More... | |
| struct | SceKernelVplOptParam |
| struct | SceKernelVplInfo |
| Variable pool status info. More... | |
| struct | SceKernelFplOptParam |
| struct | SceKernelFplInfo |
| Fixed pool status information. More... | |
| struct | SceKernelVTimerOptParam |
| struct | SceKernelVTimerInfo |
| struct | SceKernelThreadEventHandlerInfo |
| Struct for event handler info. More... | |
Macros | |
| #define | THREAD_ATTR_VFPU PSP_THREAD_ATTR_VFPU |
| #define | THREAD_ATTR_USER PSP_THREAD_ATTR_USER |
Typedefs | |
| typedef struct SceKernelSysClock | SceKernelSysClock |
| 64-bit system clock type. | |
| typedef struct SceKernelThreadOptParam | SceKernelThreadOptParam |
| Additional options used when creating threads. | |
| typedef struct SceKernelThreadInfo | SceKernelThreadInfo |
| Structure to hold the status information for a thread. | |
| typedef struct SceKernelThreadRunStatus | SceKernelThreadRunStatus |
| Statistics about a running thread. | |
| typedef struct SceKernelSemaOptParam | SceKernelSemaOptParam |
| Additional options used when creating semaphores. | |
| typedef struct SceKernelSemaInfo | SceKernelSemaInfo |
| Current state of a semaphore. | |
| typedef struct SceKernelEventFlagInfo | SceKernelEventFlagInfo |
| Structure to hold the event flag information. | |
| typedef struct SceKernelEventFlagOptParam | SceKernelEventFlagOptParam |
| typedef struct SceKernelMbxOptParam | SceKernelMbxOptParam |
| Additional options used when creating messageboxes. | |
| typedef struct SceKernelMbxInfo | SceKernelMbxInfo |
| Current state of a messagebox. | |
| typedef struct SceKernelMsgPacket | SceKernelMsgPacket |
| Header for a message box packet. | |
| typedef SceUInt(* | SceKernelAlarmHandler) (void *common) |
| Prototype for alarm handlers. | |
| typedef struct SceKernelAlarmInfo | SceKernelAlarmInfo |
| Struct containing alarm info. | |
| typedef int(* | SceKernelCallbackFunction) (int arg1, int arg2, void *arg) |
| Callback function prototype. | |
| typedef struct SceKernelCallbackInfo | SceKernelCallbackInfo |
| Structure to hold the status information for a callback. | |
| typedef struct SceKernelSystemStatus | SceKernelSystemStatus |
| Structure to contain the system status returned by sceKernelReferSystemStatus. | |
| typedef struct SceKernelMppInfo | SceKernelMppInfo |
| Message Pipe status info. | |
| typedef struct SceKernelVplInfo | SceKernelVplInfo |
| Variable pool status info. | |
| typedef struct SceKernelFplInfo | SceKernelFplInfo |
| Fixed pool status information. | |
| typedef SceUInt(* | SceKernelVTimerHandler) (SceUID uid, SceKernelSysClock *, SceKernelSysClock *, void *) |
| typedef SceUInt(* | SceKernelVTimerHandlerWide) (SceUID uid, SceInt64, SceInt64, void *) |
| typedef struct SceKernelVTimerInfo | SceKernelVTimerInfo |
| typedef int(* | SceKernelThreadEventHandler) (int mask, SceUID thid, void *common) |
| typedef struct SceKernelThreadEventHandlerInfo | SceKernelThreadEventHandlerInfo |
| Struct for event handler info. | |
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 | sceKernelSuspendDispatchThread (void) |
| Suspend the dispatch thread. | |
| int | sceKernelResumeDispatchThread (int state) |
| Resume the dispatch thread. | |
| int | sceKernelSleepThread (void) |
| Sleep thread. | |
| int | 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. | |
| int | sceKernelDelayThread (SceUInt delay) |
| Delay the current thread by a specified number of microseconds. | |
| int | sceKernelDelayThreadCB (SceUInt delay) |
| Delay the current thread by a specified number of microseconds and handle any callbacks. | |
| int | sceKernelDelaySysClockThread (SceKernelSysClock *delay) |
| Delay the current thread by a specified number of sysclocks. | |
| int | sceKernelDelaySysClockThreadCB (SceKernelSysClock *delay) |
| Delay the current thread by a specified number of sysclocks handling 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 | sceKernelRotateThreadReadyQueue (int priority) |
| Rotate thread ready queue at a set priority. | |
| int | sceKernelReleaseWaitThread (SceUID thid) |
| Release a thread in the wait state. | |
| int | sceKernelGetThreadId (void) |
| Get the current thread Id. | |
| int | sceKernelGetThreadCurrentPriority (void) |
| Get the current priority of the thread you are in. | |
| int | sceKernelGetThreadExitStatus (SceUID thid) |
| Get the exit status of a thread. | |
| int | sceKernelCheckThreadStack (void) |
| Check the thread stack? | |
| int | sceKernelGetThreadStackFreeSize (SceUID thid) |
| Get the free stack size for a thread. | |
| 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 | sceKernelCreateLwMutex (SceLwMutexWorkarea *workarea, const char *name, SceUInt32 attr, int initialCount, u32 *optionsPtr) |
| Create a lightweight mutex. | |
| int | sceKernelDeleteLwMutex (SceLwMutexWorkarea *workarea) |
| Delete a lightweight mutex. | |
| int | sceKernelTryLockLwMutex (SceLwMutexWorkarea *workarea, int lockCount) |
| Try to lock a lightweight mutex. | |
| int | sceKernelLockLwMutex (SceLwMutexWorkarea *workarea, int lockCount, unsigned int *pTimeout) |
| Lock a lightweight mutex. | |
| int | sceKernelUnlockLwMutex (SceLwMutexWorkarea *workarea, int lockCount) |
| Lock a lightweight mutex. | |
| SceUID | sceKernelCreateEventFlag (const char *name, int attr, int bits, SceKernelEventFlagOptParam *opt) |
| Create an event flag. | |
| int | sceKernelSetEventFlag (SceUID evid, u32 bits) |
| Set an event flag bit pattern. | |
| int | sceKernelClearEventFlag (SceUID evid, u32 bits) |
| Clear a event flag bit pattern. | |
| int | sceKernelPollEventFlag (int evid, u32 bits, u32 wait, u32 *outBits) |
| Poll an event flag for a given bit pattern. | |
| int | sceKernelWaitEventFlag (int evid, u32 bits, u32 wait, u32 *outBits, SceUInt *timeout) |
| Wait for an event flag for a given bit pattern. | |
| int | sceKernelWaitEventFlagCB (int evid, u32 bits, u32 wait, u32 *outBits, SceUInt *timeout) |
| Wait for an event flag for a given bit pattern with callback. | |
| int | sceKernelDeleteEventFlag (int evid) |
| Delete an event flag. | |
| 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. | |
| SceUID | sceKernelSetAlarm (SceUInt clock, SceKernelAlarmHandler handler, void *common) |
| Set an alarm. | |
| SceUID | sceKernelSetSysClockAlarm (SceKernelSysClock *clock, SceKernelAlarmHandler handler, void *common) |
| Set an alarm using a SceKernelSysClock structure for the time. | |
| int | sceKernelCancelAlarm (SceUID alarmid) |
| Cancel a pending alarm. | |
| int | sceKernelReferAlarmStatus (SceUID alarmid, SceKernelAlarmInfo *info) |
| Refer the status of a created alarm. | |
| int | sceKernelCreateCallback (const char *name, SceKernelCallbackFunction func, void *arg) |
| Create callback. | |
| int | sceKernelReferCallbackStatus (SceUID cb, SceKernelCallbackInfo *status) |
| Gets the status of a specified callback. | |
| int | sceKernelDeleteCallback (SceUID cb) |
| Delete a callback. | |
| int | sceKernelNotifyCallback (SceUID cb, int arg2) |
| Notify a callback. | |
| int | sceKernelCancelCallback (SceUID cb) |
| Cancel a callback ? | |
| int | sceKernelGetCallbackCount (SceUID cb) |
| Get the callback count. | |
| int | sceKernelCheckCallback (void) |
| Check callback ? | |
| int | sceKernelGetThreadmanIdList (enum SceKernelIdListType type, SceUID *readbuf, int readbufsize, int *idcount) |
| Get a list of UIDs from threadman. | |
| int | sceKernelReferSystemStatus (SceKernelSystemStatus *status) |
| Get the current system status. | |
| SceUID | sceKernelCreateMsgPipe (const char *name, int part, int attr, void *unk1, void *opt) |
| Create a message pipe. | |
| int | sceKernelDeleteMsgPipe (SceUID uid) |
| Delete a message pipe. | |
| int | sceKernelSendMsgPipe (SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout) |
| Send a message to a pipe. | |
| int | sceKernelSendMsgPipeCB (SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout) |
| Send a message to a pipe (with callback) | |
| int | sceKernelTrySendMsgPipe (SceUID uid, void *message, unsigned int size, int unk1, void *unk2) |
| Try to send a message to a pipe. | |
| int | sceKernelReceiveMsgPipe (SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout) |
| Receive a message from a pipe. | |
| int | sceKernelReceiveMsgPipeCB (SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout) |
| Receive a message from a pipe (with callback) | |
| int | sceKernelTryReceiveMsgPipe (SceUID uid, void *message, unsigned int size, int unk1, void *unk2) |
| Receive a message from a pipe. | |
| int | sceKernelCancelMsgPipe (SceUID uid, int *psend, int *precv) |
| Cancel a message pipe. | |
| int | sceKernelReferMsgPipeStatus (SceUID uid, SceKernelMppInfo *info) |
| Get the status of a Message Pipe. | |
| SceUID | sceKernelCreateVpl (const char *name, int part, int attr, unsigned int size, struct SceKernelVplOptParam *opt) |
| Create a variable pool. | |
| int | sceKernelDeleteVpl (SceUID uid) |
| Delete a variable pool. | |
| int | sceKernelAllocateVpl (SceUID uid, unsigned int size, void **data, unsigned int *timeout) |
| Allocate from the pool. | |
| int | sceKernelAllocateVplCB (SceUID uid, unsigned int size, void **data, unsigned int *timeout) |
| Allocate from the pool (with callback) | |
| int | sceKernelTryAllocateVpl (SceUID uid, unsigned int size, void **data) |
| Try to allocate from the pool. | |
| int | sceKernelFreeVpl (SceUID uid, void *data) |
| Free a block. | |
| int | sceKernelCancelVpl (SceUID uid, int *pnum) |
| Cancel a pool. | |
| int | sceKernelReferVplStatus (SceUID uid, SceKernelVplInfo *info) |
| Get the status of an VPL. | |
| int | sceKernelCreateFpl (const char *name, int part, int attr, unsigned int size, unsigned int blocks, struct SceKernelFplOptParam *opt) |
| Create a fixed pool. | |
| int | sceKernelDeleteFpl (SceUID uid) |
| Delete a fixed pool. | |
| int | sceKernelAllocateFpl (SceUID uid, void **data, unsigned int *timeout) |
| Allocate from the pool. | |
| int | sceKernelAllocateFplCB (SceUID uid, void **data, unsigned int *timeout) |
| Allocate from the pool (with callback) | |
| int | sceKernelTryAllocateFpl (SceUID uid, void **data) |
| Try to allocate from the pool. | |
| int | sceKernelFreeFpl (SceUID uid, void *data) |
| Free a block. | |
| int | sceKernelCancelFpl (SceUID uid, int *pnum) |
| Cancel a pool. | |
| int | sceKernelReferFplStatus (SceUID uid, SceKernelFplInfo *info) |
| Get the status of an FPL. | |
| void | _sceKernelReturnFromTimerHandler (void) |
| Return from a timer handler (doesn't seem to do alot) | |
| void | _sceKernelReturnFromCallback (void) |
| Return from a callback (used as a syscall for the return of the callback function) | |
| int | sceKernelUSec2SysClock (unsigned int usec, SceKernelSysClock *clock) |
| Convert a number of microseconds to a SceKernelSysClock structure. | |
| SceInt64 | sceKernelUSec2SysClockWide (unsigned int usec) |
| Convert a number of microseconds to a wide time. | |
| int | sceKernelSysClock2USec (SceKernelSysClock *clock, unsigned int *low, unsigned int *high) |
| Convert a SceKernelSysClock structure to microseconds. | |
| int | sceKernelSysClock2USecWide (SceInt64 clock, unsigned *low, unsigned int *high) |
| Convert a wide time to microseconds. | |
| int | sceKernelGetSystemTime (SceKernelSysClock *time) |
| Get the system time. | |
| SceInt64 | sceKernelGetSystemTimeWide (void) |
| Get the system time (wide version) | |
| unsigned int | sceKernelGetSystemTimeLow (void) |
| Get the low 32bits of the current system time. | |
| SceUID | sceKernelCreateVTimer (const char *name, struct SceKernelVTimerOptParam *opt) |
| Create a virtual timer. | |
| int | sceKernelDeleteVTimer (SceUID uid) |
| Delete a virtual timer. | |
| int | sceKernelGetVTimerBase (SceUID uid, SceKernelSysClock *base) |
| Get the timer base. | |
| SceInt64 | sceKernelGetVTimerBaseWide (SceUID uid) |
| Get the timer base (wide format) | |
| int | sceKernelGetVTimerTime (SceUID uid, SceKernelSysClock *time) |
| Get the timer time. | |
| SceInt64 | sceKernelGetVTimerTimeWide (SceUID uid) |
| Get the timer time (wide format) | |
| int | sceKernelSetVTimerTime (SceUID uid, SceKernelSysClock *time) |
| Set the timer time. | |
| SceInt64 | sceKernelSetVTimerTimeWide (SceUID uid, SceInt64 time) |
| Set the timer time (wide format) | |
| int | sceKernelStartVTimer (SceUID uid) |
| Start a virtual timer. | |
| int | sceKernelStopVTimer (SceUID uid) |
| Stop a virtual timer. | |
| int | sceKernelSetVTimerHandler (SceUID uid, SceKernelSysClock *time, SceKernelVTimerHandler handler, void *common) |
| Set the timer handler. | |
| int | sceKernelSetVTimerHandlerWide (SceUID uid, SceInt64 time, SceKernelVTimerHandlerWide handler, void *common) |
| Set the timer handler (wide mode) | |
| int | sceKernelCancelVTimerHandler (SceUID uid) |
| Cancel the timer handler. | |
| int | sceKernelReferVTimerStatus (SceUID uid, SceKernelVTimerInfo *info) |
| Get the status of a VTimer. | |
| void | _sceKernelExitThread (void) |
| Exit the thread (probably used as the syscall when the main thread returns. | |
| enum SceKernelIdListType | sceKernelGetThreadmanIdType (SceUID uid) |
| Get the type of a threadman uid. | |
| SceUID | sceKernelRegisterThreadEventHandler (const char *name, SceUID threadID, int mask, SceKernelThreadEventHandler handler, void *common) |
| Register a thread event handler. | |
| int | sceKernelReleaseThreadEventHandler (SceUID uid) |
| Release a thread event handler. | |
| int | sceKernelReferThreadEventHandlerStatus (SceUID uid, struct SceKernelThreadEventHandlerInfo *info) |
| Refer the status of an thread event handler. | |
| PspDebugProfilerRegs * | sceKernelReferThreadProfiler (void) |
| Get the thread profiler registers. | |
| PspDebugProfilerRegs * | sceKernelReferGlobalProfiler (void) |
| Get the globile profiler registers. | |
Library imports for the kernel threading library.
| #define THREAD_ATTR_USER PSP_THREAD_ATTR_USER |
| #define THREAD_ATTR_VFPU PSP_THREAD_ATTR_VFPU |
| typedef SceUInt(* SceKernelAlarmHandler) (void *common) |
Prototype for alarm handlers.
| typedef struct SceKernelAlarmInfo SceKernelAlarmInfo |
Struct containing alarm info.
| typedef int(* SceKernelCallbackFunction) (int arg1, int arg2, void *arg) |
Callback function prototype.
| typedef struct SceKernelCallbackInfo SceKernelCallbackInfo |
Structure to hold the status information for a callback.
| typedef struct SceKernelEventFlagInfo SceKernelEventFlagInfo |
Structure to hold the event flag information.
| typedef struct SceKernelEventFlagOptParam SceKernelEventFlagOptParam |
| typedef struct SceKernelFplInfo SceKernelFplInfo |
Fixed pool status information.
| typedef struct SceKernelMbxInfo SceKernelMbxInfo |
Current state of a messagebox.
| typedef struct SceKernelMbxOptParam SceKernelMbxOptParam |
Additional options used when creating messageboxes.
| typedef struct SceKernelMppInfo SceKernelMppInfo |
Message Pipe status info.
| typedef struct SceKernelMsgPacket SceKernelMsgPacket |
Header for a message box packet.
| typedef struct SceKernelSemaInfo SceKernelSemaInfo |
Current state of a semaphore.
| typedef struct SceKernelSemaOptParam SceKernelSemaOptParam |
Additional options used when creating semaphores.
| typedef struct SceKernelSysClock SceKernelSysClock |
64-bit system clock type.
| typedef struct SceKernelSystemStatus SceKernelSystemStatus |
Structure to contain the system status returned by sceKernelReferSystemStatus.
| typedef int(* SceKernelThreadEventHandler) (int mask, SceUID thid, void *common) |
| typedef struct SceKernelThreadEventHandlerInfo SceKernelThreadEventHandlerInfo |
Struct for event handler info.
| typedef struct SceKernelThreadInfo SceKernelThreadInfo |
Structure to hold the status information for a thread.
| typedef struct SceKernelThreadOptParam SceKernelThreadOptParam |
Additional options used when creating threads.
| typedef struct SceKernelThreadRunStatus SceKernelThreadRunStatus |
Statistics about a running thread.
| typedef struct SceKernelVplInfo SceKernelVplInfo |
Variable pool status info.
| typedef SceUInt(* SceKernelVTimerHandler) (SceUID uid, SceKernelSysClock *, SceKernelSysClock *, void *) |
| typedef struct SceKernelVTimerInfo SceKernelVTimerInfo |
| enum PspLwMutexAttributes |
| enum PspThreadAttributes |
Attribute for threads.
| enum PspThreadStatus |
| enum SceKernelIdListType |
Threadman types for sceKernelGetThreadmanIdList.
| enum ThreadEventIds |
| enum ThreadEvents |
| void _sceKernelExitThread | ( | void | ) |
Exit the thread (probably used as the syscall when the main thread returns.
| void _sceKernelReturnFromCallback | ( | void | ) |
Return from a callback (used as a syscall for the return of the callback function)
| void _sceKernelReturnFromTimerHandler | ( | void | ) |
Return from a timer handler (doesn't seem to do alot)
| int sceKernelAllocateFpl | ( | SceUID | uid, |
| void ** | data, | ||
| unsigned int * | timeout ) |
Allocate from the pool.
| uid | - The UID of the pool |
| data | - Receives the address of the allocated data |
| timeout | - Amount of time to wait for allocation? |
| int sceKernelAllocateFplCB | ( | SceUID | uid, |
| void ** | data, | ||
| unsigned int * | timeout ) |
Allocate from the pool (with callback)
| uid | - The UID of the pool |
| data | - Receives the address of the allocated data |
| timeout | - Amount of time to wait for allocation? |
| int sceKernelAllocateVpl | ( | SceUID | uid, |
| unsigned int | size, | ||
| void ** | data, | ||
| unsigned int * | timeout ) |
Allocate from the pool.
| uid | - The UID of the pool |
| size | - The size to allocate |
| data | - Receives the address of the allocated data |
| timeout | - Amount of time to wait for allocation? |
| int sceKernelAllocateVplCB | ( | SceUID | uid, |
| unsigned int | size, | ||
| void ** | data, | ||
| unsigned int * | timeout ) |
Allocate from the pool (with callback)
| uid | - The UID of the pool |
| size | - The size to allocate |
| data | - Receives the address of the allocated data |
| timeout | - Amount of time to wait for allocation? |
| int sceKernelCancelAlarm | ( | SceUID | alarmid | ) |
Cancel a pending alarm.
| alarmid | - UID of the alarm to cancel. |
| int sceKernelCancelCallback | ( | SceUID | cb | ) |
Cancel a callback ?
| cb | - The UID of the specified callback |
| int sceKernelCancelFpl | ( | SceUID | uid, |
| int * | pnum ) |
Cancel a pool.
| uid | - The UID of the pool |
| pnum | - Receives the number of waiting threads |
| int sceKernelCancelMsgPipe | ( | SceUID | uid, |
| int * | psend, | ||
| int * | precv ) |
Cancel a message pipe.
| uid | - UID of the pipe to cancel |
| psend | - Receive number of sending threads? |
| precv | - Receive number of receiving threads? |
| int sceKernelCancelReceiveMbx | ( | SceUID | mbxid, |
| int * | pnum ) |
Abort all wait operations on a messagebox.
| mbxid | - The mbx id returned from sceKernelCreateMbx |
| pnum | - A pointer to where the number of threads which were waiting on the mbx should be stored (NULL if you don't care) |
| int sceKernelCancelVpl | ( | SceUID | uid, |
| int * | pnum ) |
Cancel a pool.
| uid | - The UID of the pool |
| pnum | - Receives the number of waiting threads |
| int sceKernelCancelVTimerHandler | ( | SceUID | uid | ) |
Cancel the timer handler.
| uid | - The UID of the vtimer |
| int sceKernelCancelWakeupThread | ( | SceUID | thid | ) |
Cancel a thread that was to be woken with sceKernelWakeupThread.
| thid | - UID of the thread to cancel. |
| int sceKernelChangeCurrentThreadAttr | ( | int | unknown, |
| SceUInt | attr ) |
Modify the attributes of the current thread.
| unknown | - Set to 0. |
| attr | - The thread attributes to modify. One of PspThreadAttributes. |
Referenced by pspvfpu_initcontext().
| int sceKernelChangeThreadPriority | ( | SceUID | thid, |
| int | priority ) |
Change the threads current priority.
| thid | - The ID of the thread (from sceKernelCreateThread or sceKernelGetThreadId) |
| priority | - The new priority (the lower the number the higher the priority) |
| int sceKernelCheckCallback | ( | void | ) |
Check callback ?
| int sceKernelCheckThreadStack | ( | void | ) |
Check the thread stack?
Clear a event flag bit pattern.
| evid | - The event id returned by sceKernelCreateEventFlag |
| bits | - The bits to clean |
| int sceKernelCreateCallback | ( | const char * | name, |
| SceKernelCallbackFunction | func, | ||
| void * | arg ) |
Create callback.
| name | - A textual name for the callback |
| func | - A pointer to a function that will be called as the callback |
| arg | - Argument for the callback ? |
| SceUID sceKernelCreateEventFlag | ( | const char * | name, |
| int | attr, | ||
| int | bits, | ||
| SceKernelEventFlagOptParam * | opt ) |
Create an event flag.
| name | - The name of the event flag. |
| attr | - Attributes from PspEventFlagAttributes |
| bits | - Initial bit pattern. |
| opt | - Options, set to NULL |
Referenced by sceGuInit().
| int sceKernelCreateFpl | ( | const char * | name, |
| int | part, | ||
| int | attr, | ||
| unsigned int | size, | ||
| unsigned int | blocks, | ||
| struct SceKernelFplOptParam * | opt ) |
Create a fixed pool.
| name | - Name of the pool |
| part | - The memory partition ID |
| attr | - Attributes |
| size | - Size of pool block |
| blocks | - Number of blocks to allocate |
| opt | - Options (set to NULL) |
| int sceKernelCreateLwMutex | ( | SceLwMutexWorkarea * | workarea, |
| const char * | name, | ||
| SceUInt32 | attr, | ||
| int | initialCount, | ||
| u32 * | optionsPtr ) |
Create a lightweight mutex.
| workarea | - The pointer to the workarea |
| name | - The name of the lightweight mutex |
| attr | - The LwMutex attributes, zero or more of PspLwMutexAttributes. |
| initialCount | - THe inital value of the mutex |
| optionsPtr | - Other options for mutex |
| SceUID sceKernelCreateMbx | ( | const char * | name, |
| SceUInt | attr, | ||
| SceKernelMbxOptParam * | option ) |
Creates a new messagebox.
| name | - Specifies the name of the mbx |
| attr | - Mbx attribute flags (normally set to 0) |
| option | - Mbx options (normally set to NULL) |
| SceUID sceKernelCreateMsgPipe | ( | const char * | name, |
| int | part, | ||
| int | attr, | ||
| void * | unk1, | ||
| void * | opt ) |
Create a message pipe.
| name | - Name of the pipe |
| part | - ID of the memory partition |
| attr | - Set to 0? |
| unk1 | - Unknown |
| opt | - Message pipe options (set to NULL) |
| SceUID sceKernelCreateSema | ( | const char * | name, |
| SceUInt | attr, | ||
| int | initVal, | ||
| int | maxVal, | ||
| SceKernelSemaOptParam * | option ) |
Creates a new semaphore.
| name | - Specifies the name of the sema |
| attr | - Sema attribute flags (normally set to 0) |
| initVal | - Sema initial value |
| maxVal | - Sema maximum value |
| option | - Sema options (normally set to 0) |
| SceUID sceKernelCreateThread | ( | const char * | name, |
| SceKernelThreadEntry | entry, | ||
| int | initPriority, | ||
| int | stackSize, | ||
| SceUInt | attr, | ||
| SceKernelThreadOptParam * | option ) |
Create a thread.
| name | - An arbitrary thread name. |
| entry | - The thread function to run when started. |
| initPriority | - The initial priority of the thread. Less if higher priority. |
| stackSize | - The size of the initial stack. |
| attr | - The thread attributes, zero or more of PspThreadAttributes. |
| option | - Additional options specified by SceKernelThreadOptParam. |
Referenced by _start(), and pspAudioInit().
| SceUID sceKernelCreateVpl | ( | const char * | name, |
| int | part, | ||
| int | attr, | ||
| unsigned int | size, | ||
| struct SceKernelVplOptParam * | opt ) |
Create a variable pool.
| name | - Name of the pool |
| part | - The memory partition ID |
| attr | - Attributes |
| size | - Size of pool |
| opt | - Options (set to NULL) |
| SceUID sceKernelCreateVTimer | ( | const char * | name, |
| struct SceKernelVTimerOptParam * | opt ) |
Create a virtual timer.
| name | - Name for the timer. |
| opt | - Pointer to an SceKernelVTimerOptParam (pass NULL) |
| int sceKernelDelaySysClockThread | ( | SceKernelSysClock * | delay | ) |
Delay the current thread by a specified number of sysclocks.
| delay | - Delay in sysclocks |
| int sceKernelDelaySysClockThreadCB | ( | SceKernelSysClock * | delay | ) |
Delay the current thread by a specified number of sysclocks handling callbacks.
| delay | - Delay in sysclocks |
| int sceKernelDelayThread | ( | SceUInt | delay | ) |
Delay the current thread by a specified number of microseconds.
| delay | - Delay in microseconds. |
Referenced by pspDebugSioInit().
| int sceKernelDelayThreadCB | ( | SceUInt | delay | ) |
Delay the current thread by a specified number of microseconds and handle any callbacks.
| delay | - Delay in microseconds. |
| int sceKernelDeleteCallback | ( | SceUID | cb | ) |
Delete a callback.
| cb | - The UID of the specified callback |
| int sceKernelDeleteEventFlag | ( | int | evid | ) |
Delete an event flag.
| evid | - The event id returned by sceKernelCreateEventFlag. |
Referenced by sceGuInit(), and sceGuTerm().
| int sceKernelDeleteFpl | ( | SceUID | uid | ) |
Delete a fixed pool.
| uid | - The UID of the pool |
| int sceKernelDeleteLwMutex | ( | SceLwMutexWorkarea * | workarea | ) |
Delete a lightweight mutex.
| workarea | - The pointer to the workarea |
| int sceKernelDeleteMbx | ( | SceUID | mbxid | ) |
Destroy a messagebox.
| mbxid | - The mbxid returned from a previous create call. |
| int sceKernelDeleteMsgPipe | ( | SceUID | uid | ) |
Delete a message pipe.
| uid | - The UID of the pipe |
| int sceKernelDeleteSema | ( | SceUID | semaid | ) |
Destroy a semaphore.
| semaid | - The semaid returned from a previous create call. |
| int sceKernelDeleteThread | ( | SceUID | thid | ) |
Delate a thread.
| thid | - UID of the thread to be deleted. |
Referenced by pspAudioEnd(), and pspAudioInit().
| int sceKernelDeleteVpl | ( | SceUID | uid | ) |
Delete a variable pool.
| uid | - The UID of the pool |
| int sceKernelDeleteVTimer | ( | SceUID | uid | ) |
Delete a virtual timer.
| uid | - The UID of the timer |
Referenced by gprof_stop().
| int sceKernelExitDeleteThread | ( | int | status | ) |
| int sceKernelExitThread | ( | int | status | ) |
Exit a thread.
| status | - Exit status. |
| int sceKernelFreeFpl | ( | SceUID | uid, |
| void * | data ) |
Free a block.
| uid | - The UID of the pool |
| data | - The data block to deallocate |
| int sceKernelFreeVpl | ( | SceUID | uid, |
| void * | data ) |
Free a block.
| uid | - The UID of the pool |
| data | - The data block to deallocate |
| int sceKernelGetCallbackCount | ( | SceUID | cb | ) |
Get the callback count.
| cb | - The UID of the specified callback |
| int sceKernelGetSystemTime | ( | SceKernelSysClock * | time | ) |
Get the system time.
| time | - Pointer to a SceKernelSysClock structure |
| unsigned int sceKernelGetSystemTimeLow | ( | void | ) |
Get the low 32bits of the current system time.
| SceInt64 sceKernelGetSystemTimeWide | ( | void | ) |
Get the system time (wide version)
| int sceKernelGetThreadCurrentPriority | ( | void | ) |
Get the current priority of the thread you are in.
| int sceKernelGetThreadExitStatus | ( | SceUID | thid | ) |
Get the exit status of a thread.
| thid | - The UID of the thread to check. |
| int sceKernelGetThreadId | ( | void | ) |
Get the current thread Id.
Referenced by pspDebugGetStackTrace2().
| int sceKernelGetThreadmanIdList | ( | enum SceKernelIdListType | type, |
| SceUID * | readbuf, | ||
| int | readbufsize, | ||
| int * | idcount ) |
Get a list of UIDs from threadman.
Allows you to enumerate resources such as threads or semaphores.
| type | - The type of resource to list, one of SceKernelIdListType. |
| readbuf | - A pointer to a buffer to store the list. |
| readbufsize | - The size of the buffer in SceUID units. |
| idcount | - Pointer to an integer in which to return the number of ids in the list. |
| enum SceKernelIdListType sceKernelGetThreadmanIdType | ( | SceUID | uid | ) |
Get the type of a threadman uid.
| uid | - The uid to get the type from |
| int sceKernelGetThreadStackFreeSize | ( | SceUID | thid | ) |
Get the free stack size for a thread.
| thid | - The thread ID. Seem to take current thread if set to 0. |
| int sceKernelGetVTimerBase | ( | SceUID | uid, |
| SceKernelSysClock * | base ) |
Get the timer base.
| uid | - UID of the vtimer |
| base | - Pointer to a SceKernelSysClock structure |
Get the timer base (wide format)
| uid | - UID of the vtimer |
| int sceKernelGetVTimerTime | ( | SceUID | uid, |
| SceKernelSysClock * | time ) |
Get the timer time.
| uid | - UID of the vtimer |
| time | - Pointer to a SceKernelSysClock structure |
Get the timer time (wide format)
| uid | - UID of the vtimer |
| int sceKernelLockLwMutex | ( | SceLwMutexWorkarea * | workarea, |
| int | lockCount, | ||
| unsigned int * | pTimeout ) |
Lock a lightweight mutex.
| workarea | - The pointer to the workarea |
| lockCount | - value of increase the lock counter |
| pTimeout | - The pointer for timeout waiting |
| int sceKernelNotifyCallback | ( | SceUID | cb, |
| int | arg2 ) |
Notify a callback.
| cb | - The UID of the specified callback |
| arg2 | - Passed as arg2 into the callback function |
Poll an event flag for a given bit pattern.
| evid | - The event id returned by sceKernelCreateEventFlag. |
| bits | - The bit pattern to poll for. |
| wait | - Wait type, one or more of PspEventFlagWaitTypes or'ed together |
| outBits | - The bit pattern that was matched. |
| int sceKernelPollMbx | ( | SceUID | mbxid, |
| void ** | pmessage ) |
Check if a message has arrived in a messagebox.
| mbxid | - The mbx id returned from sceKernelCreateMbx |
| pmessage | - A pointer to where a pointer to the received message should be stored |
| int sceKernelPollSema | ( | SceUID | semaid, |
| int | signal ) |
Poll a sempahore.
| semaid | - UID of the semaphore to poll. |
| signal | - The value to test for. |
Wait for a message to arrive in a messagebox.
| mbxid | - The mbx id returned from sceKernelCreateMbx |
| pmessage | - A pointer to where a pointer to the received message should be stored |
| timeout | - Timeout in microseconds |
Wait for a message to arrive in a messagebox and handle callbacks if necessary.
| mbxid | - The mbx id returned from sceKernelCreateMbx |
| pmessage | - A pointer to where a pointer to the received message should be stored |
| timeout | - Timeout in microseconds |
| int sceKernelReceiveMsgPipe | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2, | ||
| unsigned int * | timeout ) |
Receive a message from a pipe.
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| timeout | - Timeout for receive |
| int sceKernelReceiveMsgPipeCB | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2, | ||
| unsigned int * | timeout ) |
Receive a message from a pipe (with callback)
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| timeout | - Timeout for receive |
| int sceKernelReferAlarmStatus | ( | SceUID | alarmid, |
| SceKernelAlarmInfo * | info ) |
Refer the status of a created alarm.
| alarmid | - UID of the alarm to get the info of |
| info | - Pointer to a SceKernelAlarmInfo structure |
| int sceKernelReferCallbackStatus | ( | SceUID | cb, |
| SceKernelCallbackInfo * | status ) |
Gets the status of a specified callback.
| cb | - The UID of the callback to refer. |
| status | - Pointer to a status structure. The size parameter should be initialised before calling. |
Referenced by pspSdkReferCallbackStatusByName().
| int sceKernelReferEventFlagStatus | ( | SceUID | event, |
| SceKernelEventFlagInfo * | status ) |
Get the status of an event flag.
| event | - The UID of the event. |
| status | - A pointer to a SceKernelEventFlagInfo structure. |
Referenced by pspSdkReferEventFlagStatusByName().
| int sceKernelReferFplStatus | ( | SceUID | uid, |
| SceKernelFplInfo * | info ) |
Get the status of an FPL.
| uid | - The uid of the FPL |
| info | - Pointer to a SceKernelFplInfo structure |
Referenced by pspSdkReferFplStatusByName().
| PspDebugProfilerRegs * sceKernelReferGlobalProfiler | ( | void | ) |
Get the globile profiler registers.
| int sceKernelReferMbxStatus | ( | SceUID | mbxid, |
| SceKernelMbxInfo * | info ) |
Retrieve information about a messagebox.
| mbxid | - UID of the messagebox to retrieve info for. |
| info | - Pointer to a SceKernelMbxInfo struct to receive the info. |
Referenced by pspSdkReferMboxStatusByName().
| int sceKernelReferMsgPipeStatus | ( | SceUID | uid, |
| SceKernelMppInfo * | info ) |
Get the status of a Message Pipe.
| uid | - The uid of the Message Pipe |
| info | - Pointer to a SceKernelMppInfo structure |
Referenced by pspSdkReferMppStatusByName().
| int sceKernelReferSemaStatus | ( | SceUID | semaid, |
| SceKernelSemaInfo * | info ) |
Retrieve information about a semaphore.
| semaid | - UID of the semaphore to retrieve info for. |
| info | - Pointer to a SceKernelSemaInfo struct to receive the info. |
Referenced by pspSdkReferSemaStatusByName().
| int sceKernelReferSystemStatus | ( | SceKernelSystemStatus * | status | ) |
Get the current system status.
| status | - Pointer to a SceKernelSystemStatus structure. |
| int sceKernelReferThreadEventHandlerStatus | ( | SceUID | uid, |
| struct SceKernelThreadEventHandlerInfo * | info ) |
Refer the status of an thread event handler.
| uid | - The UID of the event handler |
| info | - Pointer to a SceKernelThreadEventHandlerInfo structure |
Referenced by pspSdkReferThreadEventHandlerStatusByName().
| PspDebugProfilerRegs * sceKernelReferThreadProfiler | ( | void | ) |
Get the thread profiler registers.
| int sceKernelReferThreadRunStatus | ( | SceUID | thid, |
| SceKernelThreadRunStatus * | status ) |
Retrive the runtime status of a thread.
| thid | - UID of the thread to retrive status. |
| status | - Pointer to a SceKernelThreadRunStatus struct to receive the runtime status. |
| int sceKernelReferThreadStatus | ( | SceUID | thid, |
| SceKernelThreadInfo * | info ) |
Get the status information for the specified thread.
| thid | - Id of the thread to get status |
| info | - Pointer to the info structure to receive the data. Note: The structures size field should be set to sizeof(SceKernelThreadInfo) before calling this function. |
Referenced by pspDebugGetStackTrace2(), and pspSdkReferThreadStatusByName().
| int sceKernelReferVplStatus | ( | SceUID | uid, |
| SceKernelVplInfo * | info ) |
Get the status of an VPL.
| uid | - The uid of the VPL |
| info | - Pointer to a SceKernelVplInfo structure |
Referenced by pspSdkReferVplStatusByName().
| int sceKernelReferVTimerStatus | ( | SceUID | uid, |
| SceKernelVTimerInfo * | info ) |
Get the status of a VTimer.
| uid | - The uid of the VTimer |
| info | - Pointer to a SceKernelVTimerInfo structure |
Referenced by pspSdkReferVTimerStatusByName().
| SceUID sceKernelRegisterThreadEventHandler | ( | const char * | name, |
| SceUID | threadID, | ||
| int | mask, | ||
| SceKernelThreadEventHandler | handler, | ||
| void * | common ) |
Register a thread event handler.
| name | - Name for the thread event handler |
| threadID | - Thread ID to monitor |
| mask | - Bit mask for what events to handle (only lowest 4 bits valid) |
| handler | - Pointer to a SceKernelThreadEventHandler function |
| common | - Common pointer |
| int sceKernelReleaseThreadEventHandler | ( | SceUID | uid | ) |
Release a thread event handler.
| uid | - The UID of the event handler |
| int sceKernelReleaseWaitThread | ( | SceUID | thid | ) |
Release a thread in the wait state.
| thid | - The UID of the thread. |
| int sceKernelResumeDispatchThread | ( | int | state | ) |
Resume the dispatch thread.
| state | - The state of the dispatch thread (from sceKernelSuspendDispatchThread) |
| int sceKernelResumeThread | ( | SceUID | thid | ) |
Resume a thread previously put into a suspended state with sceKernelSuspendThread.
| thid | - UID of the thread to resume. |
| int sceKernelRotateThreadReadyQueue | ( | int | priority | ) |
Rotate thread ready queue at a set priority.
| priority | - The priority of the queue |
| int sceKernelSendMbx | ( | SceUID | mbxid, |
| void * | message ) |
Send a message to a messagebox.
| mbxid | - The mbx id returned from sceKernelCreateMbx |
| message | - A message to be forwarded to the receiver. The start of the message should be the SceKernelMsgPacket structure, the rest |
| int sceKernelSendMsgPipe | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2, | ||
| unsigned int * | timeout ) |
Send a message to a pipe.
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| timeout | - Timeout for send |
| int sceKernelSendMsgPipeCB | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2, | ||
| unsigned int * | timeout ) |
Send a message to a pipe (with callback)
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| timeout | - Timeout for send |
| SceUID sceKernelSetAlarm | ( | SceUInt | clock, |
| SceKernelAlarmHandler | handler, | ||
| void * | common ) |
Set an alarm.
| clock | - The number of micro seconds till the alarm occurrs. |
| handler | - Pointer to a SceKernelAlarmHandler |
| common | - Common pointer for the alarm handler |
Set an event flag bit pattern.
| evid | - The event id returned by sceKernelCreateEventFlag. |
| bits | - The bit pattern to set. |
Referenced by callbackSig().
| SceUID sceKernelSetSysClockAlarm | ( | SceKernelSysClock * | clock, |
| SceKernelAlarmHandler | handler, | ||
| void * | common ) |
Set an alarm using a SceKernelSysClock structure for the time.
| clock | - Pointer to a SceKernelSysClock structure |
| handler | - Pointer to a SceKernelAlarmHandler |
| common | - Common pointer for the alarm handler. |
| int sceKernelSetVTimerHandler | ( | SceUID | uid, |
| SceKernelSysClock * | time, | ||
| SceKernelVTimerHandler | handler, | ||
| void * | common ) |
Set the timer handler.
| uid | - UID of the vtimer |
| time | - Time to call the handler? |
| handler | - The timer handler |
| common | - Common pointer |
| int sceKernelSetVTimerHandlerWide | ( | SceUID | uid, |
| SceInt64 | time, | ||
| SceKernelVTimerHandlerWide | handler, | ||
| void * | common ) |
Set the timer handler (wide mode)
| uid | - UID of the vtimer |
| time | - Time to call the handler? |
| handler | - The timer handler |
| common | - Common pointer |
| int sceKernelSetVTimerTime | ( | SceUID | uid, |
| SceKernelSysClock * | time ) |
Set the timer time.
| uid | - UID of the vtimer |
| time | - Pointer to a SceKernelSysClock structure |
Set the timer time (wide format)
| uid | - UID of the vtimer |
| time | - Pointer to a SceKernelSysClock structure |
| int sceKernelSignalSema | ( | SceUID | semaid, |
| int | signal ) |
Send a signal to a semaphore.
| semaid | - The sema id returned from sceKernelCreateSema |
| signal | - The amount to signal the sema (i.e. if 2 then increment the sema by 2) |
| int sceKernelSleepThread | ( | void | ) |
Sleep thread.
| int sceKernelSleepThreadCB | ( | void | ) |
Sleep thread but service any callbacks as necessary.
Start a created thread.
| thid | - Thread id from sceKernelCreateThread |
| arglen | - Length of the data pointed to by argp, in bytes |
| argp | - Pointer to the arguments. |
Referenced by _start(), and pspAudioInit().
| int sceKernelStartVTimer | ( | SceUID | uid | ) |
Start a virtual timer.
| uid | - The UID of the timer |
| int sceKernelStopVTimer | ( | SceUID | uid | ) |
Stop a virtual timer.
| uid | - The UID of the timer |
Referenced by gprof_stop().
| int sceKernelSuspendDispatchThread | ( | void | ) |
Suspend the dispatch thread.
| int sceKernelSuspendThread | ( | SceUID | thid | ) |
Suspend a thread.
| thid | - UID of the thread to suspend. |
| int sceKernelSysClock2USec | ( | SceKernelSysClock * | clock, |
| unsigned int * | low, | ||
| unsigned int * | high ) |
Convert a SceKernelSysClock structure to microseconds.
| clock | - Pointer to a SceKernelSysClock structure |
| low | - Pointer to the low part of the time |
| high | - Pointer to the high part of the time |
| int sceKernelSysClock2USecWide | ( | SceInt64 | clock, |
| unsigned * | low, | ||
| unsigned int * | high ) |
Convert a wide time to microseconds.
| clock | - Wide time |
| low | - Pointer to the low part of the time |
| high | - Pointer to the high part of the time |
| int sceKernelTerminateDeleteThread | ( | SceUID | thid | ) |
Terminate and delete a thread.
| thid | - UID of the thread to terminate and delete. |
| int sceKernelTerminateThread | ( | SceUID | thid | ) |
Terminate a thread.
| thid | - UID of the thread to terminate. |
| int sceKernelTryAllocateFpl | ( | SceUID | uid, |
| void ** | data ) |
Try to allocate from the pool.
| uid | - The UID of the pool |
| data | - Receives the address of the allocated data |
| int sceKernelTryAllocateVpl | ( | SceUID | uid, |
| unsigned int | size, | ||
| void ** | data ) |
Try to allocate from the pool.
| uid | - The UID of the pool |
| size | - The size to allocate |
| data | - Receives the address of the allocated data |
| int sceKernelTryLockLwMutex | ( | SceLwMutexWorkarea * | workarea, |
| int | lockCount ) |
Try to lock a lightweight mutex.
| workarea | - The pointer to the workarea |
| lockCount | - value of increase the lock counter |
| int sceKernelTryReceiveMsgPipe | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2 ) |
Receive a message from a pipe.
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| int sceKernelTrySendMsgPipe | ( | SceUID | uid, |
| void * | message, | ||
| unsigned int | size, | ||
| int | unk1, | ||
| void * | unk2 ) |
Try to send a message to a pipe.
| uid | - The UID of the pipe |
| message | - Pointer to the message |
| size | - Size of the message |
| unk1 | - Unknown |
| unk2 | - Unknown |
| int sceKernelUnlockLwMutex | ( | SceLwMutexWorkarea * | workarea, |
| int | lockCount ) |
Lock a lightweight mutex.
| workarea | - The pointer to the workarea |
| lockCount | - value of decrease the lock counter |
| int sceKernelUSec2SysClock | ( | unsigned int | usec, |
| SceKernelSysClock * | clock ) |
Convert a number of microseconds to a SceKernelSysClock structure.
| usec | - Number of microseconds |
| clock | - Pointer to a SceKernelSysClock structure |
| SceInt64 sceKernelUSec2SysClockWide | ( | unsigned int | usec | ) |
Convert a number of microseconds to a wide time.
| usec | - Number of microseconds. |
Wait for an event flag for a given bit pattern.
| evid | - The event id returned by sceKernelCreateEventFlag. |
| bits | - The bit pattern to poll for. |
| wait | - Wait type, one or more of PspEventFlagWaitTypes or'ed together |
| outBits | - The bit pattern that was matched. |
| timeout | - Timeout in microseconds |
Wait for an event flag for a given bit pattern with callback.
| evid | - The event id returned by sceKernelCreateEventFlag. |
| bits | - The bit pattern to poll for. |
| wait | - Wait type, one or more of PspEventFlagWaitTypes or'ed together |
| outBits | - The bit pattern that was matched. |
| timeout | - Timeout in microseconds |
Lock a semaphore.
| semaid | - The sema id returned from sceKernelCreateSema |
| signal | - The value to wait for (i.e. if 1 then wait till reaches a signal state of 1) |
| timeout | - Timeout in microseconds (assumed). |
Lock a semaphore a handle callbacks if necessary.
| semaid | - The sema id returned from sceKernelCreateSema |
| signal | - The value to wait for (i.e. if 1 then wait till reaches a signal state of 1) |
| timeout | - Timeout in microseconds (assumed). |
Wait until a thread has ended.
| thid | - Id of the thread to wait for. |
| timeout | - Timeout in microseconds (assumed). |
Wait until a thread has ended and handle callbacks if necessary.
| thid | - Id of the thread to wait for. |
| timeout | - Timeout in microseconds (assumed). |
| int sceKernelWakeupThread | ( | SceUID | thid | ) |
Wake a thread previously put into the sleep state.
| thid | - UID of the thread to wake. |