vitasdk
Documentation of the vitasdk

Detailed Description

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



Functions

 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. More...
 
int ksceKernelResumeProcess (SceUID pid)
 Resume a suspended process. More...
 
int ksceKernelSuspendProcess (SceUID pid, int status)
 Suspend a running process. More...
 
int ksceKernelGetProcessStatus (SceUID pid, int *status)
 Get the status of a given process. More...
 
SceUID ksceKernelGetProcessMainThread (SceUID pid)
 Get the main thread for a given process. More...
 
ScePVoid ksceKernelGetProcessModuleInfo (SceUID pid)
 Get the process module control block. More...
 
int ksceKernelGetProcessSelfAuthInfo (SceUID pid, SceSelfAuthInfo *self_auth_info)
 Get the process self auth info. More...
 
int ksceKernelLibcGettimeofday (SceKernelTimeval *tv, SceKernelTimezone *tz)
 
SceKernelTime ksceKernelLibcTime (SceKernelTime *tloc)
 
int ksceKernelExitProcess (int status)
 
SceClassksceKernelGetUIDProcessClass (void)
 

Typedefs

typedef SceUInt32 SceKernelProcessType
 
typedef SceUInt64 SceKernelClock
 
typedef SceUInt32 SceKernelTime
 
typedef SceUInt32 SceKernelProcessType
 

Data Structure Documentation

◆ SceKernelTimeval

struct SceKernelTimeval
Data Fields
SceInt32 sec
SceInt32 usec

◆ SceKernelTimezone

struct SceKernelTimezone
Data Fields
SceUInt64 value

◆ 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

Typedef Documentation

◆ SceKernelProcessType [1/2]

◆ SceKernelClock

◆ SceKernelTime

◆ SceKernelProcessType [2/2]

Enumeration Type Documentation

◆ 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 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelTimeval   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelTimezone   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelProcessPrioritySystem   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelProcessPriorityUser   
)

◆ VITASDK_BUILD_ASSERT_EQ() [5/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelPowerTickType   
)

◆ VITASDK_BUILD_ASSERT_EQ() [6/7]

VITASDK_BUILD_ASSERT_EQ ( 0xE8  ,
SceKernelProcessInfo   
)

◆ ksceKernelGetProcessKernelBuf()

void* ksceKernelGetProcessKernelBuf ( SceUID  pid)

◆ ksceKernelGetProcessInfo()

int ksceKernelGetProcessInfo ( SceUID  pid,
SceKernelProcessInfo info 
)

◆ 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]

VITASDK_BUILD_ASSERT_EQ ( ,
SceKernelProcessType   
)

◆ ksceKernelCreateProcess()

SceUID ksceKernelCreateProcess ( const char *  titleid,
SceKernelProcessType  type,
const char *  path,
void *  opt 
)

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]pidThe process to resume.
Returns
Zero on success, < 0 on error.

◆ ksceKernelSuspendProcess()

int ksceKernelSuspendProcess ( SceUID  pid,
int  status 
)

Suspend a running process.

Parameters
[in]pidThe process to suspend.
[in]statusThe 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]pidThe process ID to query.
[out]statusThe bit field status of the process.
Returns
Zero on success, < 0 on error.

◆ ksceKernelGetProcessMainThread()

SceUID ksceKernelGetProcessMainThread ( SceUID  pid)

Get the main thread for a given process.

Parameters
[in]pidThe process id to query for.
Returns
The thread UID on success, else < 0 on error.

◆ ksceKernelGetProcessModuleInfo()

ScePVoid ksceKernelGetProcessModuleInfo ( SceUID  pid)

Get the process module control block.

Parameters
[in]-The target process id.
Returns
The process module cb pointer

◆ ksceKernelGetProcessSelfAuthInfo()

int ksceKernelGetProcessSelfAuthInfo ( SceUID  pid,
SceSelfAuthInfo self_auth_info 
)

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()

int ksceKernelLibcGettimeofday ( SceKernelTimeval tv,
SceKernelTimezone tz 
)

◆ ksceKernelLibcTime()

SceKernelTime ksceKernelLibcTime ( SceKernelTime tloc)

◆ ksceKernelExitProcess()

int ksceKernelExitProcess ( int  status)

◆ ksceKernelGetUIDProcessClass()

SceClass* ksceKernelGetUIDProcessClass ( void  )