Exports for Kernel.
More...
|
| enum | SceKernelProcessPrioritySystem { SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_HIGH = 32
, SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_DEFAULT = 96
, SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_LOW = 159
, __SCE_KERNEL_PROCESS_PRIORITY_SYSTEM = 0xFFFFFFFF
} |
| |
| enum | SceKernelProcessPriorityUser { SCE_KERNEL_PROCESS_PRIORITY_USER_HIGH = 64
, SCE_KERNEL_PROCESS_PRIORITY_USER_DEFAULT = 96
, SCE_KERNEL_PROCESS_PRIORITY_USER_LOW = 127
, __SCE_KERNEL_PROCESS_PRIORITY_USER = 0xFFFFFFFF
} |
| |
| enum | SceKernelPowerTickType {
SCE_KERNEL_POWER_TICK_DEFAULT = 0
, SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND = 1
, SCE_KERNEL_POWER_TICK_DISABLE_OLED_OFF = 4
, SCE_KERNEL_POWER_TICK_DISABLE_OLED_DIMMING = 6
,
__SCE_KERNEL_POWER_TICK_DISABLE = 0xFFFFFFFF
} |
| |
|
| | VITASDK_BUILD_ASSERT_EQ (8, SceKernelTimeval) |
| |
| | VITASDK_BUILD_ASSERT_EQ (8, SceKernelTimezone) |
| |
| | VITASDK_BUILD_ASSERT_EQ (4, SceKernelProcessPrioritySystem) |
| |
| | VITASDK_BUILD_ASSERT_EQ (4, SceKernelProcessPriorityUser) |
| |
| | VITASDK_BUILD_ASSERT_EQ (4, SceKernelPowerTickType) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0xE8, SceKernelProcessInfo) |
| |
| void * | ksceKernelGetProcessKernelBuf (SceUID pid) |
| |
| int | ksceKernelGetProcessInfo (SceUID pid, SceKernelProcessInfo *info) |
| |
| int | ksceKernelCreateProcessLocalStorage (const char *name, SceSize size) |
| |
| void * | ksceKernelGetProcessLocalStorageAddr (int key) |
| |
| int | ksceKernelGetProcessLocalStorageAddrForPid (SceUID pid, int key, void **out_addr, int create_if_doesnt_exist) |
| |
| | VITASDK_BUILD_ASSERT_EQ (4, SceKernelProcessType) |
| |
| SceUID | ksceKernelCreateProcess (const char *titleid, SceKernelProcessType type, const char *path, void *opt) |
| | Create process.
|
| |
| int | ksceKernelResumeProcess (SceUID pid) |
| | Resume a suspended process.
|
| |
| int | ksceKernelSuspendProcess (SceUID pid, int status) |
| | Suspend a running process.
|
| |
| int | ksceKernelGetProcessStatus (SceUID pid, int *status) |
| | Get the status of a given process.
|
| |
| SceUID | ksceKernelGetProcessMainThread (SceUID pid) |
| | Get the main thread for a given process.
|
| |
| ScePVoid | ksceKernelGetProcessModuleInfo (SceUID pid) |
| | Get the process module control block.
|
| |
| int | ksceKernelGetProcessSelfAuthInfo (SceUID pid, SceSelfAuthInfo *self_auth_info) |
| | Get the process self auth info.
|
| |
| int | ksceKernelLibcGettimeofday (SceKernelTimeval *tv, SceKernelTimezone *tz) |
| |
| SceKernelTime | ksceKernelLibcTime (SceKernelTime *tloc) |
| |
| int | ksceKernelExitProcess (int status) |
| |
| SceClass * | ksceKernelGetUIDProcessClass (void) |
| |
Exports for Kernel.
Using this library in your project
Include the header file in your project:
Using this library in your project
Include the header file in your project:
Link the library to the executable:
SceProcessmgrForKernel_stub
◆ SceKernelTimeval
◆ SceKernelTimezone
◆ SceKernelProcessInfo
| struct SceKernelProcessInfo |
| Data Fields |
|
SceSize |
size |
size of this struct, make sure it's 0xE8 |
|
SceUID |
pid |
our process ID |
|
int |
unk1 |
|
|
int |
unk2 |
|
|
int |
unk3 |
|
|
SceUID |
ppid |
parent process ID |
|
int |
unk[0xE8/4 - 6] |
the rest is unknown |
◆ SceKernelProcessType [1/2]
◆ SceKernelClock
◆ SceKernelTime
◆ SceKernelProcessType [2/2]
◆ SceKernelProcessPrioritySystem
| Enumerator |
|---|
| SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_HIGH | |
| SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_DEFAULT | |
| SCE_KERNEL_PROCESS_PRIORITY_SYSTEM_LOW | |
| __SCE_KERNEL_PROCESS_PRIORITY_SYSTEM | |
◆ SceKernelProcessPriorityUser
| Enumerator |
|---|
| SCE_KERNEL_PROCESS_PRIORITY_USER_HIGH | |
| SCE_KERNEL_PROCESS_PRIORITY_USER_DEFAULT | |
| SCE_KERNEL_PROCESS_PRIORITY_USER_LOW | |
| __SCE_KERNEL_PROCESS_PRIORITY_USER | |
◆ SceKernelPowerTickType
| Enumerator |
|---|
| SCE_KERNEL_POWER_TICK_DEFAULT | Cancel all timers.
|
| SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND | Cancel automatic suspension timer.
|
| SCE_KERNEL_POWER_TICK_DISABLE_OLED_OFF | Cancel OLED-off timer.
|
| SCE_KERNEL_POWER_TICK_DISABLE_OLED_DIMMING | Cancel OLED dimming timer.
|
| __SCE_KERNEL_POWER_TICK_DISABLE | |
◆ VITASDK_BUILD_ASSERT_EQ() [1/7]
◆ VITASDK_BUILD_ASSERT_EQ() [2/7]
◆ VITASDK_BUILD_ASSERT_EQ() [3/7]
◆ VITASDK_BUILD_ASSERT_EQ() [4/7]
◆ VITASDK_BUILD_ASSERT_EQ() [5/7]
◆ VITASDK_BUILD_ASSERT_EQ() [6/7]
◆ ksceKernelGetProcessKernelBuf()
| void * ksceKernelGetProcessKernelBuf |
( |
SceUID |
pid | ) |
|
◆ ksceKernelGetProcessInfo()
◆ ksceKernelCreateProcessLocalStorage()
| int ksceKernelCreateProcessLocalStorage |
( |
const char * |
name, |
|
|
SceSize |
size |
|
) |
| |
◆ ksceKernelGetProcessLocalStorageAddr()
| void * ksceKernelGetProcessLocalStorageAddr |
( |
int |
key | ) |
|
◆ ksceKernelGetProcessLocalStorageAddrForPid()
| int ksceKernelGetProcessLocalStorageAddrForPid |
( |
SceUID |
pid, |
|
|
int |
key, |
|
|
void ** |
out_addr, |
|
|
int |
create_if_doesnt_exist |
|
) |
| |
◆ VITASDK_BUILD_ASSERT_EQ() [7/7]
◆ ksceKernelCreateProcess()
Create process.
- Parameters
-
| [in] | titleid | - The TitleId of the app to open. |
| [in] | type | - The process type. |
| [in] | path | - Path of the process image. |
| [in] | opt | - The create process option. |
- Returns
- PID of the created process on success, < 0 on error.
◆ ksceKernelResumeProcess()
| int ksceKernelResumeProcess |
( |
SceUID |
pid | ) |
|
Resume a suspended process.
- Parameters
-
| [in] | pid | The process to resume. |
- Returns
- Zero on success, < 0 on error.
◆ ksceKernelSuspendProcess()
| int ksceKernelSuspendProcess |
( |
SceUID |
pid, |
|
|
int |
status |
|
) |
| |
Suspend a running process.
- Parameters
-
| [in] | pid | The process to suspend. |
| [in] | status | The new status for the process. |
- Returns
- Zero on success, < 0 on error.
◆ ksceKernelGetProcessStatus()
| int ksceKernelGetProcessStatus |
( |
SceUID |
pid, |
|
|
int * |
status |
|
) |
| |
Get the status of a given process.
- Parameters
-
| [in] | pid | The process ID to query. |
| [out] | status | The bit field status of the process. |
- Returns
- Zero on success, < 0 on error.
◆ ksceKernelGetProcessMainThread()
Get the main thread for a given process.
- Parameters
-
| [in] | pid | The process id to query for. |
- Returns
- The thread UID on success, else < 0 on error.
◆ ksceKernelGetProcessModuleInfo()
Get the process module control block.
- Parameters
-
| [in] | - | The target process id. |
- Returns
- The process module cb pointer
◆ ksceKernelGetProcessSelfAuthInfo()
Get the process self auth info.
- Parameters
-
| [in] | pid | - The target process id. |
| [out] | self_auth_info | - The output buffer pointer of self auth info. |
- Returns
- Zero on success, < 0 on error.
◆ ksceKernelLibcGettimeofday()
◆ ksceKernelLibcTime()
◆ ksceKernelExitProcess()
| int ksceKernelExitProcess |
( |
int |
status | ) |
|
◆ ksceKernelGetUIDProcessClass()
| SceClass * ksceKernelGetUIDProcessClass |
( |
void |
| ) |
|
◆ sec
◆ usec
◆ value
◆ size
size of this struct, make sure it's 0xE8
◆ pid
| SceUID SceKernelProcessInfo::pid |
◆ unk1
| int SceKernelProcessInfo::unk1 |
◆ unk2
| int SceKernelProcessInfo::unk2 |
◆ unk3
| int SceKernelProcessInfo::unk3 |
◆ ppid
| SceUID SceKernelProcessInfo::ppid |
◆ unk
| int SceKernelProcessInfo::unk[0xE8/4 - 6] |