PSPSDK 2025-09-30
|
Describes a loaded module in memory. More...
#include <kernel/psploadcore.h>
Data Fields | |
struct SceModule * | next |
Pointer to the next registered module. | |
u16 | attribute |
The attributes of a module. | |
u8 | version [2] |
The version of the module. | |
char | modname [27] |
The module's name. | |
char | terminal |
String terminator (always '\0'). | |
u16 | mod_state |
The status of the module. | |
char | padding [2] |
SceUID | sec_id |
A secondary ID for the module. | |
SceUID | modid |
The module's UID. | |
SceUID | user_mod_thid |
The thread ID of a user module. | |
SceUID | mem_id |
The ID of the memory block belonging to the module. | |
u32 | mpid_text |
The ID of the TEXT segment's memory partition. | |
u32 | mpid_data |
The ID of the DATA segment's memory partition. | |
void * | ent_top |
Pointer to the first resident library entry table of the module. | |
SceSize | ent_size |
The size of all resident library entry tables of the module. | |
void * | stub_top |
Pointer to the first stub library entry table of the module. | |
SceSize | stub_size |
The size of all stub library entry tables of the module. | |
SceKernelThreadEntry | module_start |
A pointer to the (required) module's start entry function. | |
SceKernelThreadEntry | module_stop |
A pointer to the (required) module's stop entry function. | |
SceKernelThreadEntry | module_bootstart |
A pointer to a module's Bootstart entry function. | |
SceKernelRebootBeforeForKernel | module_reboot_before |
A pointer to a module's rebootBefore entry function. | |
SceKernelRebootPhaseForKernel | module_reboot_phase |
A pointer to a module's rebootPhase entry function. | |
u32 | entry_addr |
The entry address of the module. | |
u32 | gp_value |
Contains the offset from the start of the TEXT segment of the program's GP register value. | |
u32 | text_addr |
The start address of the TEXT segment. | |
u32 | text_size |
The size of the TEXT segment. | |
u32 | data_size |
The size of the DATA segment. | |
u32 | bss_size |
The size of the BSS segment. | |
u8 | nsegment |
The number of segments the module consists of. | |
u8 | padding2 [3] |
Reserved. | |
u32 | segmentaddr [4] |
An array containing the start address of each segment. | |
SceSize | segmentsize [4] |
An array containing the size of each segment. | |
u32 | segmentalign [4] |
An array containing the alignment information of each segment. | |
s32 | module_start_thread_priority |
The priority of the module start thread. | |
SceSize | module_start_thread_stacksize |
The stack size of the module start thread. | |
SceUInt | module_start_thread_attr |
The attributes of the module start thread. | |
s32 | module_stop_thread_priority |
The priority of the module stop thread. | |
SceSize | module_stop_thread_stacksize |
The stack size of the module stop thread. | |
SceUInt | module_stop_thread_attr |
The attributes of the module stop thread. | |
s32 | module_reboot_before_thread_priority |
The priority of the module reboot before thread. | |
SceSize | module_reboot_before_thread_stacksize |
The stack size of the module reboot before thread. | |
SceUInt | module_reboot_before_thread_attr |
The attributes of the module reboot before thread. | |
u32 | count_reg_val |
The value of the coprocessor 0's count register when the module is created. | |
u32 | segment_checksum |
The segment checksum of the module's segments. | |
u32 | text_segment_checksum |
TEXT segment checksum of the module. | |
u32 | compute_text_segment_checksum |
Whether to compute the text segment checksum before starting the module (see prologue). | |
Describes a loaded module in memory.
This structure could change in future firmware revisions.
u16 SceModule::attribute |
The attributes of a module.
One or more of SceModuleAttribute and SceModulePrivilegeLevel.
Referenced by pspSdkQueryModuleInfoV1().
u32 SceModule::bss_size |
The size of the BSS segment.
Referenced by pspSdkQueryModuleInfoV1().
u32 SceModule::compute_text_segment_checksum |
Whether to compute the text segment checksum before starting the module (see prologue).
If non-zero, the text segment checksum will be computed after the module's resident libraries have been registered, and its stub libraries have been linked.
u32 SceModule::count_reg_val |
The value of the coprocessor 0's count register when the module is created.
u32 SceModule::data_size |
The size of the DATA segment.
Referenced by pspSdkQueryModuleInfoV1().
SceSize SceModule::ent_size |
The size of all resident library entry tables of the module.
void* SceModule::ent_top |
Pointer to the first resident library entry table of the module.
u32 SceModule::entry_addr |
The entry address of the module.
It is the offset from the start of the TEXT segment to the program's entry point.
Referenced by pspSdkQueryModuleInfoV1().
u32 SceModule::gp_value |
Contains the offset from the start of the TEXT segment of the program's GP register value.
Referenced by pspSdkQueryModuleInfoV1().
SceUID SceModule::mem_id |
The ID of the memory block belonging to the module.
u16 SceModule::mod_state |
The status of the module.
Contains information whether the module has been started, stopped, is a user module, etc.
SceUID SceModule::modid |
The module's UID.
char SceModule::modname[27] |
The module's name.
There can be several modules loaded with the same name.
Referenced by pspSdkQueryModuleInfoV1().
SceKernelThreadEntry SceModule::module_bootstart |
A pointer to a module's Bootstart entry function.
This function is probably executed after a reboot.
SceKernelRebootBeforeForKernel SceModule::module_reboot_before |
A pointer to a module's rebootBefore entry function.
This function is probably executed before a reboot.
SceUInt SceModule::module_reboot_before_thread_attr |
The attributes of the module reboot before thread.
s32 SceModule::module_reboot_before_thread_priority |
The priority of the module reboot before thread.
SceSize SceModule::module_reboot_before_thread_stacksize |
The stack size of the module reboot before thread.
SceKernelRebootPhaseForKernel SceModule::module_reboot_phase |
A pointer to a module's rebootPhase entry function.
This function is probably executed during a reboot.
SceKernelThreadEntry SceModule::module_start |
A pointer to the (required) module's start entry function.
This function is executed during the module's startup.
SceUInt SceModule::module_start_thread_attr |
The attributes of the module start thread.
s32 SceModule::module_start_thread_priority |
The priority of the module start thread.
SceSize SceModule::module_start_thread_stacksize |
The stack size of the module start thread.
SceKernelThreadEntry SceModule::module_stop |
A pointer to the (required) module's stop entry function.
This function is executed during the module's stopping phase.
SceUInt SceModule::module_stop_thread_attr |
The attributes of the module stop thread.
s32 SceModule::module_stop_thread_priority |
The priority of the module stop thread.
SceSize SceModule::module_stop_thread_stacksize |
The stack size of the module stop thread.
u32 SceModule::mpid_data |
The ID of the DATA segment's memory partition.
u32 SceModule::mpid_text |
The ID of the TEXT segment's memory partition.
struct SceModule* SceModule::next |
Pointer to the next registered module.
Modules are connected via a linked list.
u8 SceModule::nsegment |
The number of segments the module consists of.
Referenced by pspSdkQueryModuleInfoV1().
char SceModule::padding[2] |
u8 SceModule::padding2[3] |
Reserved.
SceUID SceModule::sec_id |
A secondary ID for the module.
u32 SceModule::segment_checksum |
The segment checksum of the module's segments.
u32 SceModule::segmentaddr[4] |
An array containing the start address of each segment.
Referenced by pspSdkQueryModuleInfoV1().
u32 SceModule::segmentalign[4] |
An array containing the alignment information of each segment.
SceSize SceModule::segmentsize[4] |
An array containing the size of each segment.
Referenced by pspSdkQueryModuleInfoV1().
SceSize SceModule::stub_size |
The size of all stub library entry tables of the module.
void* SceModule::stub_top |
Pointer to the first stub library entry table of the module.
char SceModule::terminal |
String terminator (always '\0').
u32 SceModule::text_addr |
The start address of the TEXT segment.
Referenced by pspSdkQueryModuleInfoV1().
u32 SceModule::text_segment_checksum |
TEXT segment checksum of the module.
u32 SceModule::text_size |
The size of the TEXT segment.
Referenced by pspSdkQueryModuleInfoV1().
SceUID SceModule::user_mod_thid |
The thread ID of a user module.
u8 SceModule::version[2] |
The version of the module.
Consists of a major and minor part. There can be several modules loaded with the same name and version.
Referenced by pspSdkQueryModuleInfoV1().