Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
493 lines (488 loc) · 10.1 KB

README.md

File metadata and controls

493 lines (488 loc) · 10.1 KB

PS4 Kernel References

PS4 Kernel References.

Time Management

SceKernelTimespec
SceKernelTimeval
sceKernelClockGetres
sceKernelClockGettime
sceKernelGetProcessTime
sceKernelGetProcessTimeCounter
sceKernelGetProcessTimeCounterFrequency
sceKernelGetTscFrequency
sceKernelGettimeofday
sceKernelReadTsc

Event Queues

sceKernelAddFileEvent
sceKernelAddHRTimerEvent
sceKernelAddReadEvent
sceKernelAddTimerEvent
sceKernelAddUserEvent
sceKernelAddUserEventEdge
sceKernelAddWriteEvent
sceKernelCreateEqueue
sceKernelDeleteEqueue
sceKernelDeleteFileEvent
sceKernelDeleteHRTimerEvent
sceKernelDeleteReadEvent
sceKernelDeleteTimerEvent
sceKernelDeleteUserEvent
sceKernelDeleteWriteEvent
sceKernelGetEventData
sceKernelGetEventError
sceKernelGetEventFflags
sceKernelGetEventFilter
sceKernelGetEventId
sceKernelGetEventUserData
sceKernelTriggerUserEvent
sceKernelWaitEqueue

Memory Management

SCE_KERNEL_EXTENDED_CPU_PAGE_TABLE_POOL
SCE_KERNEL_EXTENDED_GPU_PAGE_TABLE_POOL
SCE_KERNEL_FLEXIBLE_MEMORY_SIZE
SceKernelBatchMapEntry
SceKernelDirectMemoryQueryInfo
SceKernelMemoryType
SceKernelMemoryPoolBatchEntry
SceKernelMemoryPoolBlockStats
SceKernelVirtualQueryInfo
sceKernelAllocateDirectMemory
sceKernelAllocateMainDirectMemory
sceKernelAvailableDirectMemorySize
sceKernelAvailableFlexibleMemorySize
sceKernelBatchMap
sceKernelBatchMap2
sceKernelCheckedReleaseDirectMemory
sceKernelDirectMemoryQuery
sceKernelGetDirectMemorySize
sceKernelGetDirectMemoryType
sceKernelGetPageTableStats
sceKernelGetPrtAperture
sceKernelIsStack
sceKernelMapDirectMemory
sceKernelMapDirectMemory2
sceKernelMapFlexibleMemory
sceKernelMapNamedDirectMemory
sceKernelMapNamedFlexibleMemory
sceKernelMemoryPoolBatch
sceKernelMemoryPoolCommit
sceKernelMemoryPoolDecommit
sceKernelMemoryPoolExpand
sceKernelMemoryPoolGetBlockStats
sceKernelMemoryPoolMove
sceKernelMemoryPoolReserve
sceKernelMprotect
sceKernelMsync
sceKernelMtypeprotect
sceKernelMunmap
sceKernelQueryMemoryProtection
sceKernelReleaseDirectMemory
sceKernelReleaseFlexibleMemory
sceKernelReserveVirtualRange
sceKernelSetPrtAperture
sceKernelSetVirtualRangeName
sceKernelVirtualQuery

CPU Management

sceKernelGetCpumode
sceKernelIsNeoMode
sceKernelSetFsstParam

Thread Management

sceKernelGetCurrentCpu
sceKernelNanosleep
sceKernelSleep
sceKernelUsleep
scePthreadAttrDestroy
scePthreadAttrGet
scePthreadAttrGetaffinity
scePthreadAttrGetdetachstate
scePthreadAttrGetguardsize
scePthreadAttrGetinheritsched
scePthreadAttrGetschedparam
scePthreadAttrGetschedpolicy
scePthreadAttrGetstack
scePthreadAttrGetstackaddr
scePthreadAttrGetstacksize
scePthreadAttrInit
scePthreadAttrSetaffinity
scePthreadAttrSetdetachstate
scePthreadAttrSetguardsize
scePthreadAttrSetinheritsched
scePthreadAttrSetschedparam
scePthreadAttrSetschedpolicy
scePthreadAttrSetstack
scePthreadAttrSetstackaddr
scePthreadAttrSetstacksize
scePthreadCancel
scePthreadCleanupPop
scePthreadCleanupPush
scePthreadCreate
scePthreadDetach
scePthreadEqual
scePthreadExit
scePthreadGetaffinity
scePthreadGetthreadid
scePthreadGetname
scePthreadGetprio
scePthreadGetschedparam
scePthreadGetspecific
scePthreadJoin
scePthreadKeyCreate
scePthreadKeyDelete
scePthreadOnce
scePthreadRename
scePthreadSelf
scePthreadSetaffinity
scePthreadSetcancelstate
scePthreadSetcanceltype
scePthreadSetprio
scePthreadSetschedparam
scePthreadSetspecific
scePthreadTestcancel
scePthreadYield

Process Management

sceUserMainThreadName
sceUserMainThreadPriority

Dynamic Libraries

SceKernelLoadModuleOpt
SceKernelUnloadModuleOpt
sceKernelDlsym
sceKernelLoadStartModule
sceKernelStopUnloadModule

UUID

SceKernelUuid
sceKernelUuidCreate

Mutexes

scePthreadMutexDestroy
scePthreadMutexGetprioceiling
scePthreadMutexInit
scePthreadMutexLock
scePthreadMutexSetprioceiling
scePthreadMutexTimedlock
scePthreadMutexTrylock
scePthreadMutexUnlock
scePthreadMutexattrDestroy
scePthreadMutexattrGetprioceiling
scePthreadMutexattrGetprotocol
scePthreadMutexattrGettype
scePthreadMutexattrInit
scePthreadMutexattrSetprioceiling
scePthreadMutexattrSetprotocol
scePthreadMutexattrSettype

Condition Variables

scePthreadCondBroadcast
scePthreadCondDestroy
scePthreadCondInit
scePthreadCondSignal
scePthreadCondSignalto
scePthreadCondTimedwait
scePthreadCondWait
scePthreadCondattrDestroy
scePthreadCondattrInit

Read/write Locks

scePthreadRwlockDestroy
scePthreadRwlockInit
scePthreadRwlockRdlock
scePthreadRwlockTimedrdlock
scePthreadRwlockTimedwrlock
scePthreadRwlockTryrdlock
scePthreadRwlockTrywrlock
scePthreadRwlockUnlock
scePthreadRwlockWrlock
scePthreadRwlockattrDestroy
scePthreadRwlockattrGettype
scePthreadRwlockattrInit
scePthreadRwlockattrSettype

Barriers

scePthreadBarrierDestroy
scePthreadBarrierInit
scePthreadBarrierWait
scePthreadBarrierattrDestroy
scePthreadBarrierattrInit

Event Flags

SceKernelEventFlagOptParam
sceKernelCancelEventFlag
sceKernelClearEventFlag
sceKernelCreateEventFlag
sceKernelDeleteEventFlag
sceKernelPollEventFlag
sceKernelSetEventFlag
sceKernelWaitEventFlag

Semaphores

SceKernelSemaOptParam
sceKernelCancelSema
sceKernelCreateSema
sceKernelDeleteSema
sceKernelPollSema
sceKernelSignalSema
sceKernelWaitSema

POSIX Semaphores

scePthreadSemDestroy
scePthreadSemGetvalue
scePthreadSemInit
scePthreadSemPost
scePthreadSemTimedwait
scePthreadSemTrywait
scePthreadSemWait

File System

SceKernelDirent
SceKernelIovec
SceKernelStat
sceKernelCheckReachability
sceKernelChmod
sceKernelClose
sceKernelFchmod
sceKernelFcntl
sceKernelFdatasync
sceKernelFstat
sceKernelFsync
sceKernelFtruncate
sceKernelFutimes
sceKernelGetdents
sceKernelGetdirentries
sceKernelLseek
sceKernelMkdir
sceKernelMmap
sceKernelOpen
sceKernelPread
sceKernelPreadv
sceKernelPwrite
sceKernelPwritev
sceKernelRead
sceKernelReadv
sceKernelRename
sceKernelRmdir
sceKernelSetCompressionAttribute
sceKernelStat
sceKernelSync
sceKernelTruncate
sceKernelUnlink
sceKernelUtimes
sceKernelWrite
sceKernelWritev

File System (Large Writes)

sceKernelLwfsAllocateBlock
sceKernelLwfsLseek
sceKernelLwfsSetAttribute
sceKernelLwfsTrimBlock
sceKernelLwfsWrite

File System (Asynchronous I/O)

SCE_KERNEL_AIO_*_NUM_MAX
SCE_KERNEL_AIO_STATE_*
SceKernelAioParam
SceKernelAioRWRequest
SceKernelAioResult
SceKernelAioSchedulingParam
SceKernelAioSubmitId
sceKernelAioCancelRequest
sceKernelAioCancelRequests
sceKernelAioDeleteRequest
sceKernelAioDeleteRequests
sceKernelAioInitialize
sceKernelAioInitializeParam
sceKernelAioPollRequest
sceKernelAioPollRequests
sceKernelAioSetParam
sceKernelAioSubmitReadCommands
sceKernelAioSubmitReadCommandsMultiple
sceKernelAioSubmitWriteCommands
sceKernelAioSubmitWriteCommandsMultiple
sceKernelAioWaitRequest
sceKernelAioWaitRequests

Development Support

sceKernelGetGPI
sceKernelSetGPO

Exception Reason Codes

System Software and Compiler Runtime (SYSTEM)
SYSTEM_ABNORMAL_TERMINATION_REQUEST
SYSTEM_ASAN_ASSERT
SYSTEM_ASAN_FATAL_ASSERT
SYSTEM_DEBUG_RUNTIME_ERROR
SYSTEM_DUMP_AND_CONTINUE_REQUEST_ASYNC
SYSTEM_EXECUTABLE_ACCESS_ERROR
SYSTEM_ILLEGAL_EXCEPTION_CODE
SYSTEM_ILLEGAL_FUNCTION_CALL
SYSTEM_INTERNAL_DATA_ACCESS_ERROR
SYSTEM_INTERNAL_SERVICE_CALL_ERROR
SYSTEM_INTERNAL_SERVICE_CALL_FATAL
SYSTEM_INTERNAL_SERVICE_RUNTIME_ERROR
SYSTEM_INTERNAL_SERVICE_RUNTIME_FATAL
SYSTEM_PTHREAD_MUTEX_ERROR
SYSTEM_PTHREAD_RUNTIME_ERROR
SYSTEM_STACK_CHECK_FAILURE
SYSTEM_SUSPEND_BLOCK_TIMEOUT_ASYNC
SYSTEM_TRIGGER_COREDUMP_REQUEST
SYSTEM_USER_DEBUG_REQUEST_ASYNC
SYSTEM_WRITE_ADDRESS_WRAPAROUND

CPU Exceptions

SIGBUS
SIGFPE
SIGILL
SIGSEGV
SIGTRAP

GPU Exceptions

CPU_FAULT_*
GPU_FAULT_*

Dynamic Libraries (PRX)

PRX_INVALID_IMAGE
PRX_NOT_RESOLVED_FUNCTION
PRX_PROCESS_STARTUP_FAILURE
PRX_RUNTIME_ERROR
PRX_SCE_MODULE_LOAD_ERROR
PRX_TLS_ALLOC_ERROR

Standard Libraries (LIBC)

LIBC_ABORT
LIBC_ASSERT
LIBC_EXIT_FAIL
LIBC_EXIT_SUCCESS
LIBC_FAILED_*
LIBC_FAILED_TO_CREATE_HEAP
LIBC_FAILED_TO_MALLOC_INIT
LIBC_FAILED_TO_REPLACE_MALLOC
LIBC_FAILED_TO_REPLACE_NEW
LIBC_FAILED_TO_REPLACE_TLS_MALLOC
LIBC_FAILED_TO_TLS_MALLOC_INIT
LIBC_INTERNAL_*
LIBC_PURE_VIRTUAL
LIBC_QUICK_EXIT_FAIL
LIBC_QUICK_EXIT_SUCCESS
LIBC_RETURN_MAIN_FAIL
LIBC_RETURN_MAIN_SUCCESS
LIBC_TERMINATE
LIBC_UNEXPECTED
LIBC__EXIT_FAIL
LIBC__EXIT_SUCCESS

SLV (System Library Verification) Exceptions

SLV_BARRIER_DESTROY_DESTROYED
SLV_BARRIER_DESTROY_IN_USE
SLV_BARRIER_WAIT_DESTROYED
SLV_CLOSE_NOT_PERMITTED_FD
SLV_COND_BROADCAST_DESTROYED
SLV_COND_DESTROY_DESTROYED
SLV_COND_SIGNALTO_DESTROYED
SLV_COND_SIGNAL_DESTROYED
SLV_COND_TIMEDWAIT_DESTROYED
SLV_COND_TIMEDWAIT_MUTEX_NOT_OWNED
SLV_COND_WAIT_DESTROYED
SLV_COND_WAIT_MUTEX_NOT_OWNED
SLV_MUTEX_DESTROY_DESTROYED
SLV_MUTEX_DESTROY_LOCKED
SLV_MUTEX_LOCK_DESTROYED
SLV_MUTEX_TIMEDLOCK_DESTROYED
SLV_MUTEX_TRYLOCK_DESTROYED
SLV_MUTEX_UNLOCK_DESTROYED
SLV_MUTEX_UNLOCK_NOT_OWNED
SLV_POSIX_BARRIER_DESTROY_DESTROYED
SLV_POSIX_BARRIER_DESTROY_IN_USE
SLV_POSIX_BARRIER_WAIT_DESTROYED
SLV_POSIX_CLOSE_NOT_PERMITTED_FD
SLV_POSIX_COND_BROADCAST_DESTROYED
SLV_POSIX_COND_DESTROY_DESTROYED
SLV_POSIX_COND_SIGNAL_DESTROYED
SLV_POSIX_COND_TIMEDWAIT_MUTEX_NOT_OWNED
SLV_POSIX_COND_WAIT_DESTROYED
SLV_POSIX_COND_WAIT_MUTEX_NOT_OWNED
SLV_POSIX_MUTEX_DESTROY_DESTROYED
SLV_POSIX_MUTEX_DESTROY_LOCKED
SLV_POSIX_MUTEX_LOCK_DESTROYED
SLV_POSIX_MUTEX_TRYLOCK_DESTROYED
SLV_POSIX_MUTEX_UNLOCK_DESTROYED
SLV_POSIX_MUTEX_UNLOCK_NOT_OWNED
SLV_POSIX_RWLOCK_DESTROY_DESTROYED
SLV_POSIX_RWLOCK_RDLOCK_DESTROYED
SLV_POSIX_RWLOCK_TRYRDLOCK_DESTROYED
SLV_POSIX_RWLOCK_TRYWRLOCK_DESTROYED
SLV_POSIX_RWLOCK_UNLOCK_DESTROYED
SLV_POSIX_RWLOCK_UNLOCK_NOT_OWNED
SLV_POSIX_RWLOCK_WRLOCK_DESTROYED
SLV_RWLOCK_DESTROY_DESTROYED
SLV_RWLOCK_RDLOCK_DESTROYED
SLV_RWLOCK_TIMEDRDLOCK_DESTROYED
SLV_RWLOCK_TIMEDWRLOCK_DESTROYED
SLV_RWLOCK_TRYRDLOCK_DESTROYED
SLV_RWLOCK_TRYWRLOCK_DESTROYED
SLV_RWLOCK_UNLOCK_DESTROYED
SLV_RWLOCK_UNLOCK_NOT_OWNED
SLV_RWLOCK_WRLOCK_DESTROYED

Other Exceptions

SIGPIPE

Kernel Primitives

WAIT_EQUEUE
WAIT_EVENTFLAG
WAIT_INTERNAL
WAIT_IO
WAIT_NONE
WAIT_OTHER
WAIT_SEMAPHORE
WAIT_SLEEP
WAIT_THREAD_SUSPEND

SDK API

WAIT_PTHREAD_BARRIER
WAIT_PTHREAD_CONDVAR
WAIT_PTHREAD_JOIN
WAIT_PTHREAD_MUTEX
WAIT_PTHREAD_RUNTIME
WAIT_PTHREAD_RWLOCK_RD
WAIT_PTHREAD_RWLOCK_WR
WAIT_USER

System Software

WAIT_SERVICE