vitasdk
Documentation of the vitasdk

Exports for User. More...

Data Structures

struct  SceKernelModuleStartParam
 

Typedefs

typedef struct SceKernelLoadModuleOption SceKernelLoadModuleOption
 
typedef struct SceKernelUnloadModuleOption SceKernelUnloadModuleOption
 
typedef struct SceKernelLibraryInfo SceKernelLibraryInfo
 

Functions

int sceKernelGetModuleInfo (SceUID uid, SceKernelModuleInfo *info)
 
int sceKernelGetModuleList (SceUInt8 type, SceUID *uids, SceSize *num)
 
SceUID sceKernelLoadModule (const char *path, int flags, SceKernelLMOption *option)
 
int sceKernelUnloadModule (SceUID modid, int flags, SceKernelULMOption *option)
 
int sceKernelStartModule (SceUID modid, SceSize args, void *argp, int flags, void *option, int *status)
 
int sceKernelStopModule (SceUID modid, SceSize args, void *argp, int flags, void *option, int *status)
 
SceUID sceKernelLoadStartModule (const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)
 
int sceKernelStopUnloadModule (SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status)
 
int sceKernelGetSystemSwVersion (SceKernelSystemSwVersion *version)
 Gets system firmware information.
 
SceUID _sceKernelLoadModule (const char *module_filename, SceUInt32 flags, const SceKernelLoadModuleOption *option)
 
SceUID _sceKernelLoadStartModule (const char *module_filename, SceSize args, const void *argp, SceUInt32 flags)
 
int _sceKernelUnloadModule (SceUID uid, SceUInt32 flags, const SceKernelUnloadModuleOption *option)
 
int _sceKernelStopModule (SceUID uid, SceSize args, const void *argp, SceUInt32 flags)
 
int _sceKernelStopUnloadModule (SceUID uid, SceSize args, const void *argp, SceUInt32 flags)
 
SceUID _sceKernelOpenModule (const char *module_filename, SceSize args, const void *argp, SceUInt32 flags)
 
SceUID _sceKernelCloseModule (SceUID modid, SceSize args, const void *argp, SceUInt32 flags)
 
int sceKernelGetLibraryInfoByNID (SceUID modid, SceNID libnid, SceKernelLibraryInfo *info)
 
int sceKernelIsCalledFromSysModule (void *lr)
 
SceUID sceKernelGetModuleIdByAddr (void *addr)
 
SceUInt32 sceKernelGetAllowedSdkVersionOnSystem (void)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceKernelModuleStartParam)
 
int _sceKernelStartModule (SceUID modid, SceSize args, const void *argp, const SceKernelModuleStartParam *param)
 Starts a loaded user module.
 

Variables

SceUInt32 SceKernelModuleStartParam::flags
 Must be 0.
 
const SceKernelStartModuleOpt * SceKernelModuleStartParam::opt
 Optional start parameters; their size field must be 0x10.
 
int * SceKernelModuleStartParam::result
 Must be non-NULL; receives the return value of the module start entry point.
 
SceUInt32 SceKernelModuleStartParam::reserved
 Copied from user memory but unused on FW 3.60.
 

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceKernelModulemgr_stub




Data Structure Documentation

◆ SceKernelModuleStartParam

struct SceKernelModuleStartParam
Data Fields
SceUInt32 flags Must be 0.
const SceKernelStartModuleOpt * opt Optional start parameters; their size field must be 0x10.
int * result Must be non-NULL; receives the return value of the module start entry point.
SceUInt32 reserved Copied from user memory but unused on FW 3.60.

Typedef Documentation

◆ SceKernelLoadModuleOption

◆ SceKernelUnloadModuleOption

◆ SceKernelLibraryInfo

Function Documentation

◆ sceKernelGetModuleInfo()

int sceKernelGetModuleInfo ( SceUID  uid,
SceKernelModuleInfo *  info 
)

◆ sceKernelGetModuleList()

int sceKernelGetModuleList ( SceUInt8  type,
SceUID *  uids,
SceSize *  num 
)

◆ sceKernelLoadModule()

SceUID sceKernelLoadModule ( const char *  path,
int  flags,
SceKernelLMOption *  option 
)

◆ sceKernelUnloadModule()

int sceKernelUnloadModule ( SceUID  modid,
int  flags,
SceKernelULMOption *  option 
)

◆ sceKernelStartModule()

int sceKernelStartModule ( SceUID  modid,
SceSize  args,
void *  argp,
int  flags,
void *  option,
int *  status 
)

◆ sceKernelStopModule()

int sceKernelStopModule ( SceUID  modid,
SceSize  args,
void *  argp,
int  flags,
void *  option,
int *  status 
)

◆ sceKernelLoadStartModule()

SceUID sceKernelLoadStartModule ( const char *  path,
SceSize  args,
void *  argp,
int  flags,
SceKernelLMOption *  option,
int *  status 
)

◆ sceKernelStopUnloadModule()

int sceKernelStopUnloadModule ( SceUID  modid,
SceSize  args,
void *  argp,
int  flags,
SceKernelULMOption *  option,
int *  status 
)

◆ sceKernelGetSystemSwVersion()

int sceKernelGetSystemSwVersion ( SceKernelSystemSwVersion *  version)

Gets system firmware information.

Parameters
[out]version- System sw version.
Note
- If you spoofed the firmware version it will return the spoofed firmware.

◆ _sceKernelLoadModule()

SceUID _sceKernelLoadModule ( const char *  module_filename,
SceUInt32  flags,
const SceKernelLoadModuleOption *  option 
)

◆ _sceKernelLoadStartModule()

SceUID _sceKernelLoadStartModule ( const char *  module_filename,
SceSize  args,
const void *  argp,
SceUInt32  flags 
)

◆ _sceKernelUnloadModule()

int _sceKernelUnloadModule ( SceUID  uid,
SceUInt32  flags,
const SceKernelUnloadModuleOption *  option 
)

◆ _sceKernelStopModule()

int _sceKernelStopModule ( SceUID  uid,
SceSize  args,
const void *  argp,
SceUInt32  flags 
)

◆ _sceKernelStopUnloadModule()

int _sceKernelStopUnloadModule ( SceUID  uid,
SceSize  args,
const void *  argp,
SceUInt32  flags 
)

◆ _sceKernelOpenModule()

SceUID _sceKernelOpenModule ( const char *  module_filename,
SceSize  args,
const void *  argp,
SceUInt32  flags 
)

◆ _sceKernelCloseModule()

SceUID _sceKernelCloseModule ( SceUID  modid,
SceSize  args,
const void *  argp,
SceUInt32  flags 
)

◆ sceKernelGetLibraryInfoByNID()

int sceKernelGetLibraryInfoByNID ( SceUID  modid,
SceNID  libnid,
SceKernelLibraryInfo *  info 
)

◆ sceKernelIsCalledFromSysModule()

int sceKernelIsCalledFromSysModule ( void *  lr)

◆ sceKernelGetModuleIdByAddr()

SceUID sceKernelGetModuleIdByAddr ( void *  addr)

◆ sceKernelGetAllowedSdkVersionOnSystem()

SceUInt32 sceKernelGetAllowedSdkVersionOnSystem ( void  )

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceKernelModuleStartParam   
)

◆ _sceKernelStartModule()

int _sceKernelStartModule ( SceUID  modid,
SceSize  args,
const void *  argp,
const SceKernelModuleStartParam *  param 
)

Starts a loaded user module.

Parameters
[in]modidModule ID.
[in]argsSize of the argument block.
[in]argpArgument block, or NULL when args is 0.
[in]paramStart parameters; must be non-NULL.
Returns
0 on success, < 0 on error.

Variable Documentation

◆ flags

SceUInt32 SceKernelModuleStartParam::flags

Must be 0.

◆ opt

const SceKernelStartModuleOpt* SceKernelModuleStartParam::opt

Optional start parameters; their size field must be 0x10.

◆ result

int* SceKernelModuleStartParam::result

Must be non-NULL; receives the return value of the module start entry point.

◆ reserved

SceUInt32 SceKernelModuleStartParam::reserved

Copied from user memory but unused on FW 3.60.