8 #ifndef _PSP2KERN_KERNEL_SYSROOT_H_
9 #define _PSP2KERN_KERNEL_SYSROOT_H_
30 #define SCE_SYSROOT_INIT_CALLBACK_MAX_FUNC (9)
31 #define SCE_SYSROOT_INIT_CALLBACK_MAX_SLOT (8)
77 int (* callback)(
int a1,
void *args);
197 #define ksceKernelGetSysrootBuffer() ksceKernelSysrootGetKblParam()
202 #define ksceKernelGetProcessTitleId(pid, titleid, len) ksceKernelSysrootGetProcessTitleId(pid, titleid, len)
290 int (*
unk_0x54)(
int a1,
int a2,
int a3,
int a4,
int a5);
int(* SceKernelCoredumpStateFinishCallback)(int task_id, SceUID pid, int result, const char *path, SceSize path_len, int unk)
Definition: coredump.h:36
int(* SceKernelCoredumpStateUpdateCallback)(int task_id, SceUID pid, int progress)
Definition: coredump.h:35
Definition: coredump.h:18
Definition: corelock.h:18
char titleid[0xC]
Title id of the process where the event occurred.
Definition: debug.h:4
int flags
Event flags.
Definition: debug.h:3
SceUID pid
Definition: debug.h:1
SceUInt64 time
Time of the event occurred.
Definition: debug.h:7
void(* unk_0x04)(int a1, int a2, int a3, int a4)
Definition: sysroot.h:270
void(* unk_0x4C)(void)
Definition: sysroot.h:288
void * unk_struct_0x3FC
Definition: sysroot.h:147
void * unk_func_0x398
Definition: sysroot.h:122
int unk_0x37C
Definition: sysroot.h:115
void(* unk_0x14)(int a1, int a2, int a3, int a4)
Definition: sysroot.h:274
void(* unk_0x24)(int a1, int a2, int a3)
Definition: sysroot.h:278
void * unk_func_0x390
Definition: sysroot.h:120
struct SceSysrootModulemgrHandlers SceSysrootModulemgrHandlers
Definition: sysroot.h:26
SceKernelBootArgs * boot_args
Definition: sysroot.h:65
void * unk_struct_0x3F8
Definition: sysroot.h:146
void * unk_func_0x3D8
Definition: sysroot.h:138
int(* funcThreadFunction3)(void)
Definition: sysroot.h:95
void * unk_0x3C0
Definition: sysroot.h:132
void * unk_0x44
Definition: sysroot.h:52
void(* unk_0x20)(int a1, int a2, int a3)
Definition: sysroot.h:277
SceUID ksceKernelSysrootGetShellPid(void)
Get SceShell process id.
int unk_0x60
Definition: sysroot.h:59
int(* on_process_created)(int a1, int a2, int a3)
called when process is created
Definition: sysroot.h:250
int(* unk_0x38)(int a1, int a2, void *a3)
Definition: sysroot.h:283
void(* unk_0x18)(SceUID pid, SceUID modid, int flags, uint64_t time)
Definition: sysroot.h:275
void * unk_0x48
Definition: sysroot.h:53
int(* unk_func_0x388)(void)
Definition: sysroot.h:118
VITASDK_BUILD_ASSERT_EQ(0x41C, SceUIDSysrootObject)
void(* funcThreadFunction7)(void)
Definition: sysroot.h:100
void * unk_data_0x400
Definition: sysroot.h:148
int(* unk_0x30)(SceUID pid)
Definition: sysroot.h:281
int ksceSysrootIsBsodReboot(void)
void * unk_func_0x374
Definition: sysroot.h:113
int unk_0x68
Definition: sysroot.h:61
int cpu_intr_for_init_callback
Definition: sysroot.h:74
void * unk_0x2E0
Definition: sysroot.h:84
void(* unk_14)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:248
int(* funcAppMgrFunction4)(int a1, int a2)
Definition: sysroot.h:142
int ksceSysrootGetHardwareFlags(void *flags)
Get hardware flags.
SceCorelockContext corelock_context
Definition: sysroot.h:45
int unk_0x34
Definition: sysroot.h:48
void * unk_func_0x410
Definition: sysroot.h:152
int(* funcGetFunctionNameByNID)(SceNID funcnid, const char **name)
Definition: sysroot.h:125
SceSize self_size
Definition: sysroot.h:169
SceUInt32 init_callback_registable_base_number
Definition: sysroot.h:75
void * unk_0x3B8
Definition: sysroot.h:130
void * unk_0x4C
Definition: sysroot.h:54
void * longtime5base
Definition: sysroot.h:72
SceSize boot_alloc_memory_size
Definition: sysroot.h:39
void ksceKernelSysrootUnregisterDbgpHandler(void)
Unregister Dbgp handlers.
int(* SceKernelGetSystemSwVersionFunc)(void)
Definition: sysroot.h:326
struct SceSysrootForKernel_D29BCA77_struct SceSysrootForKernel_D29BCA77_struct
Definition: sysroot.h:27
void(* unk_10)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:247
void * boot_alloc_memory
Definition: sysroot.h:40
int cpu_intr
Definition: sysroot.h:38
void * unk_func_0x370
Definition: sysroot.h:112
SceUInt32 unk_0x78
Definition: sysroot.h:67
int(* funcAppMgrFunction5)(int a1)
Definition: sysroot.h:143
int ksceSysrootIsUpdateMode(void)
SceSysrootForKernel_D29BCA77_struct * processmgr_callbacks1
Definition: sysroot.h:106
int(* unk_func_0x384)(void)
Definition: sysroot.h:117
SceSysrootDbgpHandler * dbgp_handler
Definition: sysroot.h:134
int(* SceKernelCoredumpTriggerFunc)(SceUID pid, SceKernelCoredumpStateUpdateCallback update_func, SceKernelCoredumpStateFinishCallback finish_func, SceCoredumpTriggerParam *param)
Definition: sysroot.h:351
int unk_0x38
Definition: sysroot.h:49
int(* unk_0x34)(int a1, int a2, int a3)
Definition: sysroot.h:282
int(* funcHasNpTestFlag)(void)
Definition: sysroot.h:121
int ksceSysrootIsNonRemovableCardMode(void)
Get NonRemovableCardMode status.
void * unk_0x40
Definition: sysroot.h:51
int ksceKernelSysrootGetProcessTitleId(SceUID pid, char *titleid, SceSize len)
int ksceKernelSysrootRegisterDbgpHandler(const SceSysrootDbgpHandler *handlers)
Register Dbgp handlers.
int(* funcGetBusError)(void *dst, uint32_t len)
Definition: sysroot.h:109
int ksceSysrootUseInternalStorage(void)
Get UseInternalStorage status.
void(* unk_0x0C)(int a1)
Definition: sysroot.h:272
void ksceKernelSysrootSetGetSystemSwVersionFunc(SceKernelGetSystemSwVersionFunc func)
Set GetSystemSwVersion function.
void * unk_func_0x378
Definition: sysroot.h:114
void * unk_0x3AC
Definition: sysroot.h:127
#define SCE_SYSROOT_INIT_CALLBACK_MAX_FUNC
Definition: sysroot.h:30
int ksceKernelSysrootGetSystemSwVersion(void)
Get System software version from ksceKernelSysrootSetGetSystemSwVersionFunc setting function.
SceKernelVARange * cached_sm_info_ranges
Definition: sysroot.h:124
void * ksceKernelSysrootGetKblParam(void)
Get SceKblParam.
SceSize size
Definition: sysroot.h:36
int(* funcLedSetMode)(int led, int mode, void *led_configuration)
Definition: sysroot.h:123
void(* unk_4)(SceUID pid, SceUID modid, int flags, uint64_t time)
process start shared modules
Definition: sysroot.h:244
void * unk_func_0x3D4
Definition: sysroot.h:137
void * unk_func_0x3DC
Definition: sysroot.h:139
void * unk_0x30C
Definition: sysroot.h:87
void * unk_func_0x404
Definition: sysroot.h:149
void * unk_0x58
Definition: sysroot.h:57
void(* unk_24)(SceUID pid, SceUID modid, int flags, uint64_t time)
Definition: sysroot.h:252
int unk_0x354
Definition: sysroot.h:105
int unk_0x5C
Definition: sysroot.h:58
SceSysrootForDriver_733C243E_struct * processmgr_callbacks2
Definition: sysroot.h:107
int(* funcAppMgrFunction1)(int a1, int a2, int a3, int a4, int a5, int a6)
Definition: sysroot.h:110
void * unk_func_0x380
Definition: sysroot.h:116
int(* funcThreadFunction9)(int a1, int a2, int a3)
Definition: sysroot.h:102
void(* unk_0x08)(int a1, int a2, int a3, int a4)
Definition: sysroot.h:271
int(* funcThreadFunction5)(void)
Definition: sysroot.h:98
void * unk_func_0x40C
Definition: sysroot.h:151
struct SceSysrootForDriver_733C243E_struct SceSysrootForDriver_733C243E_struct
Definition: sysroot.h:28
void ** unk_func_0x324
Definition: sysroot.h:93
void * unk_func_0x38C
Definition: sysroot.h:119
void * unk_0x320
Definition: sysroot.h:92
SceUInt32 status
Definition: sysroot.h:44
void * unk_struct_0x3B0
Definition: sysroot.h:128
void(* unk_0x28)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:279
void(* unk_0x1C)(int a1, int a2, int a3)
Definition: sysroot.h:276
void * unk_func_0x414
Definition: sysroot.h:153
void * unk_struct_0x3F4
Definition: sysroot.h:145
void * MVBAR
Definition: sysroot.h:91
int(* unk_0x44)(SceUID pid, SceUID modid, int flags, uint64_t time)
Definition: sysroot.h:286
void * unk_0x3C
Definition: sysroot.h:50
int ksceSysrootUseExternalStorage(void)
Get UseExternalStorage status.
int ksceSysrootGetSelfInfo(SceKernelSysrootSelfIndex index, SceKernelSysrootSelfInfo *info)
SceUID(* funcGetProcessId)(void)
Definition: sysroot.h:96
SceKblParam * kbl_param
Definition: sysroot.h:64
SceUInt32 magic1
Definition: sysroot.h:37
void(* unk_18)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:249
void * unk_func_0x3D0
Definition: sysroot.h:136
void * unk_0x3A8
Definition: sysroot.h:126
int unk_0x1C
Definition: sysroot.h:41
int(* funcThreadFunction4)(void)
Definition: sysroot.h:97
void * unk_func_0x3F0
Definition: sysroot.h:144
SceSize size
sizeof(SceSysrootProcessHandler)
Definition: sysroot.h:243
void(* unk_20)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:251
void * unk_func_0x3E0
Definition: sysroot.h:140
int(* funcThreadMgrStartAfterProcess)(void)
Definition: sysroot.h:81
SceClass * sce_class
Definition: sysroot.h:35
SceUInt32 magic2
Definition: sysroot.h:154
int ksceSysrootIsSafeMode(void)
SceSysrootModulemgrHandlers * modulemgr_handlers
Definition: sysroot.h:104
SceUIDSysrootObject SceSysroot
Definition: sysroot.h:158
void * unk_0x20
Definition: sysroot.h:42
SceUID(* funcGetShellPid)(void)
Definition: sysroot.h:111
SceSysroot * ksceSysrootGetSysroot(void)
Get sysroot object pointer.
int(* unk_0x58)(int a1, int a2, int a3)
Definition: sysroot.h:291
void(* unk_0x2C)(SceUID pid, SceUID modid, uint64_t time)
Definition: sysroot.h:280
#define SCE_SYSROOT_INIT_CALLBACK_MAX_SLOT
Definition: sysroot.h:31
char * sysroot_names[9]
Definition: sysroot.h:85
int ksceKernelSysrootSetProcessHandler(const SceSysrootProcessHandler *handlers)
Set handlers for the process lifecycle.
SceKernelSysrootSelfIndex
Definition: sysroot.h:160
void * unk_0x50
Definition: sysroot.h:55
void(* unk_0x50)(void)
Definition: sysroot.h:289
void * unk_0x3B4
Definition: sysroot.h:129
int(* unk_0x54)(int a1, int a2, int a3, int a4, int a5)
Definition: sysroot.h:290
int(* funcThreadFunction6)(void)
Definition: sysroot.h:99
SceUID(* funcGetThreadId)(void)
Definition: sysroot.h:94
SceUInt32 soc_revision
Definition: sysroot.h:66
void * unk_func_0x360
Definition: sysroot.h:108
void * unk_0x310
Definition: sysroot.h:88
int(* funcAppMgrFunction3)(int a1, int a2)
Definition: sysroot.h:141
int(* funcThreadFunction8)(void)
Definition: sysroot.h:101
void * unk_0x314
Definition: sysroot.h:89
int ksceSysrootIsUsbEnumWakeup(void)
void * unk_0x2DC
Definition: sysroot.h:83
void * unk_0x3BC
Definition: sysroot.h:131
int(* funcThreadFunction10)(int a1)
Definition: sysroot.h:103
SceUInt32 model_capability
Definition: sysroot.h:70
void * VBAR
Definition: sysroot.h:90
SceSysrootProcessHandler * process_handler
Definition: sysroot.h:133
SceSize size
Definition: sysroot.h:167
struct SceKernelBootArgs SceKernelBootArgs
Definition: sysroot.h:22
int(* unk_0x3C)(int a1, int a2, int a3)
Definition: sysroot.h:284
void * self_data
Definition: sysroot.h:168
void * object
Definition: sysroot.h:34
int(* funcIofilemgrStart)(void)
Definition: sysroot.h:82
SceUID this_object_uid
Definition: sysroot.h:86
void * args
Definition: sysroot.h:78
void ksceKernelSysrootSetSysroot(SceUID sysroot_uid)
Set sysroot object uid.
void * unk_func_0x3CC
Definition: sysroot.h:135
int(* unk_0x40)(SceUID pid, int *some_flag)
Definition: sysroot.h:285
int ksceSysrootIsManufacturingMode(void)
Get ManufacturingMode status.
SceSize size
sizeof(SceSysrootDbgpHandler):0x5C
Definition: sysroot.h:269
void(* unk_0x10)(int a1, int a2, int a3, int a4)
Definition: sysroot.h:273
int unk_0x54
Definition: sysroot.h:56
SceUInt32 boot_flags
Definition: sysroot.h:43
int ksceSysrootIsExternalBootMode(void)
SceUInt32 soc_revision2
Definition: sysroot.h:68
void(* exit)(SceUID pid, int flags, uint64_t time)
Definition: sysroot.h:245
struct SceUIDSysrootObject::@43 init_callback_slot[SCE_SYSROOT_INIT_CALLBACK_MAX_FUNC][SCE_SYSROOT_INIT_CALLBACK_MAX_SLOT]
void(* kill)(SceUID pid)
by SceShell
Definition: sysroot.h:246
void * unk_func_0x408
Definition: sysroot.h:150
void ksceKernelSysrootRegisterCoredumpTrigger(SceKernelCoredumpTriggerFunc func)
Register coredump trigger function.
int(* unk_0x48)(int a1, int a2, int a3)
Definition: sysroot.h:287
int unk_0x64
Definition: sysroot.h:60
SceUInt32 model_info
Definition: sysroot.h:69
@ SCE_KERNEL_SYSROOT_SELF_INDEX_GCAUTHMGR_SM
Definition: sysroot.h:161
@ SCE_KERNEL_SYSROOT_SELF_INDEX_RMAUTH_SM
Definition: sysroot.h:162
@ SCE_KERNEL_SYSROOT_SELF_INDEX_ENCDEC_W_PORTABILITY_SM
Definition: sysroot.h:163
Definition: sysroot.h:166
Definition: sysroot.h:268
Definition: sysroot.h:242
Definition: uid_class.h:18
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
unsigned int SceNID
Library/Function NID.
Definition: types.h:92
uint32_t SceUInt32
Definition: types.h:45