Exports for User.
More...
Exports for User.
Using this library in your project
Include the header file in your project:
Link the library to the executable:
◆ SceLibkernelAddresses
| struct SceLibkernelAddresses |
◆ sceKernelExitProcess()
| int sceKernelExitProcess |
( |
int |
res | ) |
|
Exit current Process with specified return code.
- Parameters
-
| [in] | res | - Exit code to return |
- Returns
- 0 on success, < 0 on error.
◆ sceKernelPowerTick()
Cancel specified idle timers to prevent entering in power save processing.
- Parameters
-
- Returns
- 0
◆ sceKernelPowerLock()
Locks certain timers from triggering.
- Parameters
-
- Returns
- 0
◆ sceKernelPowerUnlock()
Unlocks certain timers.
- Parameters
-
- Returns
- 0
◆ sceKernelGetProcessTime()
Get the process time of the current process.
- Parameters
-
| [out] | pSysClock | - Pointer to a SceKernelSysClock value which will receive the process time. |
- Returns
- 0 on success, < 0 on error.
◆ sceKernelGetProcessTimeLow()
| SceUInt32 sceKernelGetProcessTimeLow |
( |
void |
| ) |
|
Get the lower 32 bits part of process time of the current process.
- Returns
- process time of the current process
◆ sceKernelGetProcessTimeWide()
| SceUInt64 sceKernelGetProcessTimeWide |
( |
void |
| ) |
|
Get the process time of the current process.
- Returns
- process time of the current process
◆ sceKernelGetCurrentProcess()
| SceUID sceKernelGetCurrentProcess |
( |
void |
| ) |
|
◆ sceKernelGetRemoteProcessTime()
◆ sceKernelGetStderr()
| SceUID sceKernelGetStderr |
( |
void |
| ) |
|
◆ sceKernelGetStdin()
| SceUID sceKernelGetStdin |
( |
void |
| ) |
|
◆ sceKernelGetStdout()
| SceUID sceKernelGetStdout |
( |
void |
| ) |
|
◆ sceKernelGetProcessParam()
| const void * sceKernelGetProcessParam |
( |
void |
| ) |
|
◆ sceKernelLibcClock()
◆ sceKernelLibcTime()
◆ sceKernelLibcGettimeofday()
◆ VITASDK_BUILD_ASSERT_EQ()
◆ __attribute__()
| __attribute__ |
( |
(__noreturn__) |
| ) |
|
Terminates the calling process through the raw user export.
- Parameters
-
| [in] | exit_status | Process exit status. |
- Returns
- This function does not return.
◆ _sceKernelRegisterLibkernelAddresses()
Registers LibKernel's process-exit trampolines and addresses of cached values.
FW 3.60 copies exactly 0x1C bytes and requires SceLibkernelAddresses::size to equal 0x1C. A registered non-NULL address is not replaced by a later call. The process object stores the six addresses; the functions and storage they point to must remain valid for the process lifetime.
On FW 3.60, a failure to initialize the user process_time destination is not returned to the caller. That failure also prevents pmuserenr from being registered by the same call.
- Parameters
-
| [in] | addresses | Non-NULL registration block. |
- Returns
- 0 on success, or < 0 on error.
◆ sceKernelGetProcessTimeCore()
Gets the calling process's elapsed time in microseconds.
- Parameters
-
- Returns
- 0 on success, or < 0 on error.
◆ sceKernelGetProcessTimeLowCore()
| SceUInt32 sceKernelGetProcessTimeLowCore |
( |
void |
| ) |
|
- Returns
- The wrapping low 32 bits of the calling process's elapsed time in microseconds.
◆ sceKernelGetProcessTimeWideCore()
- Returns
- The calling process's elapsed time in microseconds.
◆ sceKernelIsCDialogAvailable()
| SceBool sceKernelIsCDialogAvailable |
( |
void |
| ) |
|
Tests whether the current process budget reserves common-dialog memory.
- Returns
- 1 when available, 0 when unavailable, or < 0 on error.
◆ sceKernelIsGameBudget()
| SceBool sceKernelIsGameBudget |
( |
void |
| ) |
|
- Returns
- 1 when the calling process uses the built-in full-game budget descriptor, otherwise 0.
◆ sceKernelRegisterProcessTerminationCallback()
Registers a callback to be notified when a process object is destroyed.
The callback receives the target process ID as its notification argument. The callback must remain valid until it is unregistered or the target process is destroyed. Registering the same pair again creates another registration; each unregister call removes one matching registration.
- Parameters
-
| [in] | pid | Nonzero target process ID. |
| [in] | callback_id | Nonzero callback PUID owned by the calling process. |
- Returns
- 0 on success, or < 0 on error.
◆ sceKernelUnregisterProcessTerminationCallback()
Unregisters one matching process-termination callback registration.
- Parameters
-
| [in] | pid | Nonzero target process ID. |
| [in] | callback_id | Nonzero previously registered callback PUID. |
- Returns
- 0 on success, or < 0 on error.
◆ size
| SceSize SceLibkernelAddresses::size |
◆ sce_kernel_exit_thread
| int(* SceLibkernelAddresses::sce_kernel_exit_thread) (int exit_status) |
◆ sce_kernel_exit_delete_thread
| int(* SceLibkernelAddresses::sce_kernel_exit_delete_thread) (int exit_status) |
Exit-and-delete-thread trampoline.
◆ _sce_kernel_exit_callback
| int(* SceLibkernelAddresses::_sce_kernel_exit_callback) (void) |
Exit-callback trampoline.
◆ coredump_handler
User coredump-thread entry point.
◆ process_time
LibKernel process-time base initialized during registration.
◆ pmuserenr
LibKernel PMUSERENR cache updated by Processmgr.