PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspmodulemgr.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.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/* Note: Some of the structures, types, and definitions in this file were
15 extrapolated from symbolic debugging information found in the Japanese
16 version of Puzzle Bobble. */
17
18#ifndef __MODLOAD_H__
19#define __MODLOAD_H__
20
21#include <pspkerneltypes.h>
22
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34#define PSP_MEMORY_PARTITION_KERNEL 1
35#define PSP_MEMORY_PARTITION_USER 2
36
46
54
55
68
80
91
106
119
132
141
151int sceKernelSelfStopUnloadModule(int unknown, SceSize argsize, void *argp);
152
164
165
166typedef struct SceKernelModuleInfo {
169 char reserved[3];
172 unsigned int entry_addr;
173 unsigned int gp_value;
174 unsigned int text_addr;
175 unsigned int text_size;
176 unsigned int data_size;
177 unsigned int bss_size;
178 /* The following is only available in the v1.5 firmware and above,
179 but as sceKernelQueryModuleInfo is broken in v1.0 is doesn't matter ;) */
180 unsigned short attribute;
181 unsigned char version[2];
182 char name[28];
184
198
210
219
222#ifdef __cplusplus
223}
224#endif
225
226#endif
u32 flags
Definition fixup.c:1
int sceKernelStopUnloadSelfModule(SceSize argsize, void *argp, int *status, SceKernelSMOption *option)
Stop and unload the current module.
SceUID sceKernelLoadModuleByID(SceUID fid, int flags, SceKernelLMOption *option)
Load a module from the given file UID.
int sceKernelSelfStopUnloadModule(int unknown, SceSize argsize, void *argp)
Stop and unload the current module.
int sceKernelUnloadModule(SceUID modid)
Unload a stopped module.
SceUID sceKernelLoadModuleBufferUsbWlan(SceSize bufsize, void *buf, int flags, SceKernelLMOption *option)
Load a module from a buffer using the USB/WLAN API.
int sceKernelStartModule(SceUID modid, SceSize argsize, void *argp, int *status, SceKernelSMOption *option)
Start a loaded module.
SceUID sceKernelLoadModule(const char *path, int flags, SceKernelLMOption *option)
Load a module.
int sceKernelQueryModuleInfo(SceUID modid, SceKernelModuleInfo *info)
Query the information about a loaded module from its UID.
SceUID sceKernelLoadModuleMs(const char *path, int flags, SceKernelLMOption *option)
Load a module from MS.
int sceKernelGetModuleIdByAddress(const void *moduleAddr)
Get the ID of the module occupying the address.
int sceKernelGetModuleIdList(SceUID *readbuf, int readbufsize, int *idcount)
Get a list of module IDs.
int sceKernelStopModule(SceUID modid, SceSize argsize, void *argp, int *status, SceKernelSMOption *option)
Stop a running module.
unsigned int SceSize
Definition pspkerneltypes.h:27
int SceUID
UIDs are used to describe many different kernel objects.
Definition pspkerneltypes.h:24
SceUID modid
Definition psploadcore.h:7
float x
Definition psptypes.h:0
Definition pspmodulemgr.h:37
SceSize size
Definition pspmodulemgr.h:38
char creserved[2]
Definition pspmodulemgr.h:44
SceUID mpidtext
Definition pspmodulemgr.h:39
char position
Definition pspmodulemgr.h:42
char access
Definition pspmodulemgr.h:43
SceUID mpiddata
Definition pspmodulemgr.h:40
unsigned int flags
Definition pspmodulemgr.h:41
Definition pspmodulemgr.h:166
unsigned short attribute
Definition pspmodulemgr.h:180
char name[28]
Definition pspmodulemgr.h:182
unsigned int entry_addr
Definition pspmodulemgr.h:172
SceSize size
Definition pspmodulemgr.h:167
int segmentsize[4]
Definition pspmodulemgr.h:171
int segmentaddr[4]
Definition pspmodulemgr.h:170
char reserved[3]
Definition pspmodulemgr.h:169
unsigned int data_size
Definition pspmodulemgr.h:176
unsigned int text_size
Definition pspmodulemgr.h:175
unsigned int bss_size
Definition pspmodulemgr.h:177
unsigned int text_addr
Definition pspmodulemgr.h:174
unsigned int gp_value
Definition pspmodulemgr.h:173
char nsegment
Definition pspmodulemgr.h:168
unsigned char version[2]
Definition pspmodulemgr.h:181
Definition pspmodulemgr.h:47
SceUID mpidstack
Definition pspmodulemgr.h:49
unsigned int attribute
Definition pspmodulemgr.h:52
int priority
Definition pspmodulemgr.h:51
SceSize stacksize
Definition pspmodulemgr.h:50
SceSize size
Definition pspmodulemgr.h:48