vitasdk
Documentation of the vitasdk
processmgr.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2KERN_KERNEL_PROCESSMGR_H_
8 #define _PSP2KERN_KERNEL_PROCESSMGR_H_
9 
10 #include <vitasdk/build_utils.h>
12 #include <psp2kern/types.h>
13 #include <psp2kern/kernel/sysmem.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef struct SceKernelProcessInfo {
22  int unk1;
23  int unk2;
24  int unk3;
26  int unk[0xE8 / 4 - 6];
29 
31 
33 
36 int ksceKernelGetProcessLocalStorageAddrForPid(SceUID pid, int key, void **out_addr, int create_if_doesnt_exist);
37 
40 
49 SceUID ksceKernelCreateProcess(const char *titleid, SceKernelProcessType type, const char *path, void *opt);
50 
57 
65 
73 
80 
89 
99 
100 
103 int ksceKernelExitProcess(int status);
105 
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif /* _PSP2KERN_KERNEL_PROCESSMGR_H_ */
uint8_t type
0 = read?, 1 = write?, 2 = feature?, 3 = ?
Definition: bt.h:2
SceSize size
struct size(variable size)
Definition: debug.h:0
char titleid[0xC]
Title id of the process where the event occurred.
Definition: debug.h:4
SceUID pid
Definition: debug.h:1
SceSize size
size of this struct, make sure it's 0xE8
Definition: processmgr.h:20
void * ksceKernelGetProcessLocalStorageAddr(int key)
int ksceKernelGetProcessInfo(SceUID pid, SceKernelProcessInfo *info)
SceClass * ksceKernelGetUIDProcessClass(void)
int unk3
Definition: processmgr.h:24
SceUInt32 SceKernelProcessType
Definition: processmgr.h:17
int ksceKernelLibcGettimeofday(SceKernelTimeval *tv, SceKernelTimezone *tz)
int ksceKernelCreateProcessLocalStorage(const char *name, SceSize size)
int ksceKernelResumeProcess(SceUID pid)
Resume a suspended process.
SceUID ppid
parent process ID
Definition: processmgr.h:25
SceKernelTime ksceKernelLibcTime(SceKernelTime *tloc)
SceUInt32 SceKernelTime
Definition: processmgr.h:20
void * ksceKernelGetProcessKernelBuf(SceUID pid)
int unk[0xE8/4 - 6]
the rest is unknown
Definition: processmgr.h:26
SceUID ksceKernelGetProcessMainThread(SceUID pid)
Get the main thread for a given process.
VITASDK_BUILD_ASSERT_EQ(8, SceKernelTimeval)
SceUID pid
our process ID
Definition: processmgr.h:21
int ksceKernelGetProcessLocalStorageAddrForPid(SceUID pid, int key, void **out_addr, int create_if_doesnt_exist)
int unk2
Definition: processmgr.h:23
int ksceKernelGetProcessSelfAuthInfo(SceUID pid, SceSelfAuthInfo *self_auth_info)
Get the process self auth info.
int ksceKernelSuspendProcess(SceUID pid, int status)
Suspend a running process.
int ksceKernelGetProcessStatus(SceUID pid, int *status)
Get the status of a given process.
ScePVoid ksceKernelGetProcessModuleInfo(SceUID pid)
Get the process module control block.
SceUID ksceKernelCreateProcess(const char *titleid, SceKernelProcessType type, const char *path, void *opt)
Create process.
int unk1
Definition: processmgr.h:22
int ksceKernelExitProcess(int status)
Definition: processmgr.h:19
Definition: processmgr.h:22
Definition: processmgr.h:28
Definition: uid_class.h:18
unsigned int SceSize
Definition: types.h:56
void * ScePVoid
Definition: types.h:81
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
uint32_t SceUInt32
Definition: types.h:45
Definition: types.h:160