vitasdk
Documentation of the vitasdk
processmgr.h File Reference

Go to the source code of this file.

Data Structures

struct  SceKernelProcessInfo
 
struct  SceKernelProcessOpt2
 FW 3.60 process-creation options. More...
 

Macros

#define SCE_KERNEL_PROCESS_TYPE_GAME   (0x01000000U)
 
#define SCE_KERNEL_PROCESS_TYPE_MINI_APPLICATION   (0x02000000U)
 
#define SCE_KERNEL_PROCESS_TYPE_SYSTEM_APPLICATION   (0x04000000U)
 
#define SCE_KERNEL_PROCESS_TYPE_KERNEL   (0x05000000U)
 Used by the kernel process object; rejected by the FW 3.60 create/spawn APIs.
 
#define SCE_KERNEL_PROCESS_START_FLAG_DEBUG   (0x80000000U)
 Requests a debug-suspended start; OR into the type passed to a spawn function.
 
#define SCE_KERNEL_PROCESS_CURRENT_PROCESS_BUDGET   (0)
 Select the calling process's built-in game or system-application budget.
 
#define SCE_KERNEL_PROCESS_FULL_GAME_PROCESS_BUDGET   (2)
 Select the built-in full-game process budget.
 
#define SCE_KERNEL_PROCESS_SYSTEM_APPLICATION_PROCESS_BUDGET   (3)
 Select the built-in system-application process budget.
 

Typedefs

typedef struct SceUIDProcessObject SceUIDProcessObject
 
typedef SceUInt32 SceKernelProcessType
 

Enumerations

enum  SceKernelProcessOptAttribute {
  SCE_KERNEL_PROCESS_OPT_ATTR_CPU_AFFINITY_MASK = 0x00001000 , SCE_KERNEL_PROCESS_OPT_ATTR_BUDGET_ID = 0x00004000 , SCE_KERNEL_PROCESS_OPT_ATTR_PARENT_PROCESS_ID = 0x00010000 , SCE_KERNEL_PROCESS_OPT_ATTR_PROCESS_EXIT_SPAWN = 0x00020000 ,
  SCE_KERNEL_PROCESS_OPT_ATTR_KLICENSEE = 0x00040000 , SCE_KERNEL_PROCESS_OPT_ATTR_MAX_OPEN_FILES = 0x00080000 , SCE_KERNEL_PROCESS_OPT_ATTR_MAX_DIRECTORY_OPEN_LEVEL = 0x00100000 , SCE_KERNEL_PROCESS_OPT_ATTR_UNIQUE_HEAP_SIZE = 0x00200000 ,
  SCE_KERNEL_PROCESS_OPT_ATTR_DISPLAY_RESOLUTION_FLAGS = 0x00800000 , SCE_KERNEL_PROCESS_OPT_ATTR_POWER_CONFIGURATION_FLAGS = 0x01000000 , SCE_KERNEL_PROCESS_OPT_ATTR_INITIAL_PRIORITY = 0x10000000 , SCE_KERNEL_PROCESS_OPT_ATTR_STACK_SIZE = 0x20000000 ,
  SCE_KERNEL_PROCESS_OPT_ATTR_REPORT_LOAD_PROGRESS = 0x40000000 , SCE_KERNEL_PROCESS_OPT_ATTR_SUPPRESS_START_NOTIFICATIONS = 0x80000000
}
 Known option bits used in SceKernelProcessOpt2::attr on FW 3.60. More...
 
enum  SceKernelProcessExitSpawnMode { SCE_KERNEL_PROCESS_EXIT_SPAWN_MODE_NORMAL = 0 , SCE_KERNEL_PROCESS_EXIT_SPAWN_MODE_ENABLED = 1 }
 Process-object handling mode selected during process creation. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0xE8, SceKernelProcessInfo)
 
void * ksceKernelGetProcessKernelBuf (SceUID pid)
 Previous VitaSDK name and prototype for ksceKernelUIDtoProcess.
 
SceUIDProcessObject * ksceKernelUIDtoProcess (ScePID pid)
 Resolves a process ID to its internal process object without acquiring a reference.
 
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)
 
 VITASDK_BUILD_ASSERT_EQ (0x40, SceKernelProcessOpt2)
 
ScePID ksceKernelCreateProcess (const char *name, SceKernelProcessType type, const char *path, void *opt)
 Create a dormant 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)
 
int ksceKernelGetProcessTimeCore (SceKernelSysClock *time)
 Gets the current process's elapsed time in microseconds.
 
SceUInt32 ksceKernelGetProcessTimeLowCore (void)
 Returns the wrapping low 32 bits of the current process's elapsed time in microseconds.
 
int ksceKernelGetRemoteProcessTime (ScePID pid, SceKernelSysClock *time)
 Gets a process's running elapsed time or stored final time in microseconds.
 
SceBool ksceKernelIsCDialogAvailable (void)
 Tests whether the current process budget reserves common-dialog memory.
 
int ksceKernelKillProcess (ScePID pid, SceInt32 option)
 Requests process termination.
 
ScePID ksceKernelSpawnProcess (const char *name, SceKernelProcessType type, const char *path, SceSize arg_size, const void *arg_block, const SceKernelProcessOpt2 *opt)
 Creates and starts a process.
 
ScePID ksceKernelSpawnProcessExt (const char *name, SceKernelProcessType type, const char *path, SceSize arg_size, const void *arg_block, const SceKernelProcessOpt2 *opt, SceUInt32 preload_flags)
 Extended form of ksceKernelSpawnProcess.
 
int ksceKernelStartProcess (ScePID pid, SceUInt32 start_flags, SceSize arg_size, const void *arg_block)
 Starts a dormant process.
 
int ksceKernelStartProcessExt (ScePID pid, SceUInt32 start_flags, SceSize arg_size, const void *arg_block, SceUInt32 preload_flags)
 Extended form of ksceKernelStartProcess.