PSPSDK 2026-02-18
Loading...
Searching...
No Matches
pspmodulemgr_kernel.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspmodulemgr_kernel.h - Prototypes to manage modules.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9 * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11 *
12 */
13
14#ifndef __MODMGRKERNEL_H__
15#define __MODMGRKERNEL_H__
16
17#include <pspkerneltypes.h>
18#include <psptypes.h>
19#include <pspmodulemgr.h>
20
32
91
92#ifdef __cplusplus
93extern "C" {
94#endif
95
107int sceKernelGetModuleList(int readbufsize, SceUID *readbuf);
108
115
127SceUID sceKernelLoadModuleBuffer(void *buf, SceSize bufsize, int flags, SceKernelLMOption *option);
128
134SceUID sceKernelLoadModuleWithApitype2(int apitype, const char *path, int flags, SceKernelLMOption *option);
135
149SceUID sceKernelLoadModuleBufferBootInitBtcnf(int bufsize, void *buf, int flags, SceKernelLMOption *option);
150
153#ifdef __cplusplus
154}
155#endif
156
157#endif
int sceKernelModuleCount(void)
Get the number of loaded modules.
SceUID sceKernelLoadModuleBufferBootInitBtcnf(int bufsize, void *buf, int flags, SceKernelLMOption *option)
Load a module from a buffer with the Boot Init BTCNF apitype (0x051).
SceUID sceKernelLoadModuleBuffer(void *buf, SceSize bufsize, int flags, SceKernelLMOption *option)
Load a module from a buffer.
SceUID sceKernelLoadModuleWithApitype2(int apitype, const char *path, int flags, SceKernelLMOption *option)
Alias for sceKernelLoadModuleForLoadExecForUser
int sceKernelGetModuleList(int readbufsize, SceUID *readbuf)
Gets the current module list.
#define SCE_SECURE_INSTALL_ID_LEN
Definition pspmodulemgr.h:38
int SceUID
UIDs are used to describe many different kernel objects.
Definition pspkerneltypes.h:24
SceInt64 SceOff
Definition pspkerneltypes.h:35
SceModuleMgrExecModes
Definition pspmodulemgr_kernel.h:25
@ MODULE_EXEC_CMD_STOP
Definition pspmodulemgr_kernel.h:29
@ MODULE_EXEC_CMD_UNLOAD
Definition pspmodulemgr_kernel.h:30
@ MODULE_EXEC_CMD_RELOCATE
Definition pspmodulemgr_kernel.h:27
@ MODULE_EXEC_CMD_START
Definition pspmodulemgr_kernel.h:28
@ MODULE_EXEC_CMD_LOAD
Definition pspmodulemgr_kernel.h:26
unsigned int SceSize
Definition psptypes.h:103
uint8_t u8
Definition psptypes.h:38
int32_t s32
Definition psptypes.h:47
uint32_t u32
Definition psptypes.h:41
Definition pspmodulemgr.h:40
Definition psploadcore.h:254
Structure used internally for many sceModuleManager module functions.
Definition pspmodulemgr_kernel.h:38
void * argp
Definition pspmodulemgr_kernel.h:72
SceUID caller_mod_id
Definition pspmodulemgr_kernel.h:68
u8 mode_finish
The Operation to finish on.
Definition pspmodulemgr_kernel.h:42
u32 unk2
Definition pspmodulemgr_kernel.h:74
u8 access
Definition pspmodulemgr_kernel.h:45
u32 unk7
Definition pspmodulemgr_kernel.h:85
SceUID event_id
Definition pspmodulemgr_kernel.h:76
SceUID * result
Definition pspmodulemgr_kernel.h:46
SceSize extern_mem_block_size
Definition pspmodulemgr_kernel.h:82
SceUID extern_mem_block_id_user
Definition pspmodulemgr_kernel.h:87
u32 thread_attr
The module thread attributes.
Definition pspmodulemgr_kernel.h:59
void * block_gzip
Definition pspmodulemgr_kernel.h:84
u32 unk3
Definition pspmodulemgr_kernel.h:77
SceUID extern_mem_block_id_kernel
Definition pspmodulemgr_kernel.h:80
s32 * status
Definition pspmodulemgr_kernel.h:75
u8 position
The module placement policy in memory.
Definition pspmodulemgr_kernel.h:44
u32 unk4
Definition pspmodulemgr_kernel.h:78
SceSize mod_size
Definition pspmodulemgr_kernel.h:69
u32 unk8
Definition pspmodulemgr_kernel.h:88
SceUID mpid_text
The memory partition where the program of the module will be stored.
Definition pspmodulemgr_kernel.h:61
SceUID extern_mem_block_partition_id
Definition pspmodulemgr_kernel.h:81
SceLoadCoreExecFileInfo * exec_info
The executable information of the module.
Definition pspmodulemgr_kernel.h:51
SceUID thread_mpid_stack
Definition pspmodulemgr_kernel.h:64
SceUID * new_block_id
Definition pspmodulemgr_kernel.h:47
SceOff mem_block_offset
Definition pspmodulemgr_kernel.h:89
SceSize stack_size
Definition pspmodulemgr_kernel.h:65
void * file_base
Definition pspmodulemgr_kernel.h:70
SceSize arg_size
Definition pspmodulemgr_kernel.h:71
u8 mode_start
The Operation to start on.
Definition pspmodulemgr_kernel.h:40
u32 unk1
Definition pspmodulemgr_kernel.h:73
SceUID mpid_data
The memory partition where the data of the module will be stored.
Definition pspmodulemgr_kernel.h:63
u32 unk6
Definition pspmodulemgr_kernel.h:83
u32 unk5
Definition pspmodulemgr_kernel.h:79
SceModule * mod
The module in memory.
Definition pspmodulemgr_kernel.h:49
SceUID fd
The file ID for module file.
Definition pspmodulemgr_kernel.h:55
u32 api_type
The API type of the module.
Definition pspmodulemgr_kernel.h:53
s32 thread_priority
The module thread priority.
Definition pspmodulemgr_kernel.h:57
SceUID mod_id
The module ID.
Definition pspmodulemgr_kernel.h:67
Describes a loaded module in memory.
Definition psploadcore.h:78