uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
modulemgr_user.h
1/* Copyright (C) 2011 - 2015 The uOFW team
2 See the file COPYING for copying permission.
3*/
4
5#ifndef MODULEMGR_USER_H
6#define MODULEMGR_USER_H
7
8#include "common_header.h"
9#include "modulemgr_moduleInfo.h"
10#include "modulemgr_options.h"
11#include "sysmem_user.h"
12
13#define SCE_SECURE_INSTALL_ID_LEN (16)
14
15/* load module */
16SceUID sceKernelLoadModule(const char *path, s32 flag, const SceKernelLMOption *pOption);
17SceUID sceKernelLoadModuleByID(SceUID inputId, s32 flag, const SceKernelLMOption *pOption);
18
19SceUID sceKernelLoadModuleWithBlockOffset(const char *path, SceUID blockId, SceOff offset);
20SceUID sceKernelLoadModuleByIDWithBlockOffset(SceUID inputId, SceUID blockId, SceOff offset);
21
22SceUID sceKernelLoadModuleNpDrm(const char *path, s32 flag, const SceKernelLMOption *pOption);
23SceUID sceKernelLoadModuleDNAS(const char *path, const char *secureInstallId, s32 flag,
24 const SceKernelLMOption *pOption);
25SceUID sceKernelLoadModuleMs(const char *path, s32 flag, const SceKernelLMOption *pOption);
26
27/* load module buffer */
28SceUID sceKernelLoadModuleBufferUsbWlan(SceSize size, void *base, s32 flag,
29 const SceKernelLMOption *pOption);
30SceUID sceKernelLoadModuleBufferMs(SceSize bufSize, void *base, s32 flag,
31 const SceKernelLMOption *pOption);
32SceUID sceKernelLoadModuleBufferApp(SceSize size, void *base, s32 flag,
33 const SceKernelLMOption *pOption);
34
35/* start module */
36s32 sceKernelStartModule(SceUID modId, SceSize args, const void *argp, s32 *pModResult,
37 const SceKernelSMOption *pOption);
38
39/* stop module */
40s32 sceKernelStopModule(SceUID modId, SceSize args, const void *argp, s32 *pModResult,
41 const SceKernelSMOption *pOption);
42
43/* unload module */
44SceUID sceKernelUnloadModule(SceUID modId);
45
46s32 sceKernelStopUnloadSelfModuleWithStatus(s32 exitStatus, SceSize args, void *argp,
47 s32 *pModResult, const SceKernelSMOption *pOption);
48s32 sceKernelStopUnloadSelfModule(SceSize args, void *argp, s32 *pModResult,
49 const SceKernelSMOption *pOption);
50
51s32 sceKernelSelfStopUnloadModule(s32 exitStatus, SceSize args, void *argp); /* backward compatibility. */
52
53/* obtain module information */
54s32 sceKernelQueryModuleInfo(SceUID modId, SceKernelModuleInfo *pModInfo);
55
56SceUID sceKernelGetModuleId(void);
57SceUID sceKernelGetModuleIdByAddress(const void *addr);
58s32 sceKernelGetModuleGPByAddress(const void *addr, u32 *pGP);
59s32 sceKernelGetModuleIdList(SceUID *pModIdList, SceSize size, u32 *pIdCount);
60
61/* Misc */
62SceBool sceKernelCheckTextSegment(void);
63
64#endif /* MODULEMGR_USER_H */
65
Definition modulemgr_options.h:20
Definition modulemgr_moduleInfo.h:12
Definition modulemgr_options.h:38