uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Data Fields
SceModule Struct Reference

#include <loadcore.h>

Data Fields

struct SceModulenext
 
u16 attribute
 
u8 version [MODULE_VERSION_NUMBER_CATEGORY_SIZE]
 
char modName [SCE_MODULE_NAME_LEN]
 
char terminal
 
u16 status
 
u16 padding
 
SceUID secId
 
SceUID modId
 
SceUID userModThid
 
SceUID moduleBlockId
 
SceUID mpIdText
 
SceUID mpIdData
 
void * entTop
 
SceSize entSize
 
void * stubTop
 
SceSize stubSize
 
SceKernelThreadEntry moduleStart
 
SceKernelThreadEntry moduleStop
 
SceKernelThreadEntry moduleBootstart
 
SceKernelRebootBeforeForKernel moduleRebootBefore
 
SceKernelRebootPhaseForKernel moduleRebootPhase
 
u32 entryAddr
 
u32 gpValue
 
u32 textAddr
 
SceSize textSize
 
SceSize dataSize
 
SceSize bssSize
 
u8 nSegments
 
u8 padding2 [3]
 
u32 segmentAddr [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
SceSize segmentSize [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
u32 segmentAlign [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
s32 moduleStartThreadPriority
 
SceSize moduleStartThreadStacksize
 
SceUInt moduleStartThreadAttr
 
s32 moduleStopThreadPriority
 
SceSize moduleStopThreadStacksize
 
SceUInt moduleStopThreadAttr
 
s32 moduleRebootBeforeThreadPriority
 
SceSize moduleRebootBeforeThreadStacksize
 
SceUInt moduleRebootBeforeThreadAttr
 
u32 countRegVal
 
u32 segmentChecksum
 
u32 textSegmentChecksum
 
u32 computeTextSegmentChecksum
 

Detailed Description

The SceModule structure represents a loaded module in memory.

Field Documentation

◆ next

struct SceModule* SceModule::next

Pointer to the next registered module. Modules are connected via a linked list.

◆ attribute

u16 SceModule::attribute

The attributes of a module. One or more of SceModuleAttribute and SceModulePrivilegeLevel.

◆ version

u8 SceModule::version[MODULE_VERSION_NUMBER_CATEGORY_SIZE]

The version of the module. Consists of a major and minor part. There can be several modules loaded with the same name and version.

◆ modName

char SceModule::modName[SCE_MODULE_NAME_LEN]

The module's name. There can be several modules loaded with the same name.

◆ terminal

char SceModule::terminal

String terminator (always '\0').

◆ status

u16 SceModule::status

The status of the module. Contains information whether the module has been started, stopped, is a user module, etc.

◆ padding

u16 SceModule::padding

Reserved.

◆ secId

SceUID SceModule::secId

A secondary ID for the module.

◆ modId

SceUID SceModule::modId

The module's UID.

◆ userModThid

SceUID SceModule::userModThid

The thread ID of a user module.

◆ moduleBlockId

SceUID SceModule::moduleBlockId

The ID of the memory block belonging to the module.

◆ mpIdText

SceUID SceModule::mpIdText

The ID of the TEXT segment's memory partition.

◆ mpIdData

SceUID SceModule::mpIdData

The ID of the DATA segment's memory partition.

◆ entTop

void* SceModule::entTop

Pointer to the first resident library entry table of the module.

◆ entSize

SceSize SceModule::entSize

The size of all resident library entry tables of the module.

◆ stubTop

void* SceModule::stubTop

Pointer to the first stub library entry table of the module.

◆ stubSize

SceSize SceModule::stubSize

The size of all stub library entry tables of the module.

◆ moduleStart

SceKernelThreadEntry SceModule::moduleStart

A pointer to the (required) module's start entry function. This function is executed during the module's startup.

◆ moduleStop

SceKernelThreadEntry SceModule::moduleStop

A pointer to the (required) module's stop entry function. This function is executed during the module's stopping phase.

◆ moduleBootstart

SceKernelThreadEntry SceModule::moduleBootstart

A pointer to a module's Bootstart entry function. This function is probably executed after a reboot.

◆ moduleRebootBefore

SceKernelRebootBeforeForKernel SceModule::moduleRebootBefore

A pointer to a module's rebootBefore entry function. This function is probably executed before a reboot.

◆ moduleRebootPhase

SceKernelRebootPhaseForKernel SceModule::moduleRebootPhase

A pointer to a module's rebootPhase entry function. This function is probably executed during a reboot.

◆ entryAddr

u32 SceModule::entryAddr

The entry address of the module. It is the offset from the start of the TEXT segment to the program's entry point.

◆ gpValue

u32 SceModule::gpValue

Contains the offset from the start of the TEXT segment of the program's GP register value.

◆ textAddr

u32 SceModule::textAddr

The start address of the TEXT segment.

◆ textSize

SceSize SceModule::textSize

The size of the TEXT segment.

◆ dataSize

SceSize SceModule::dataSize

The size of the DATA segment.

◆ bssSize

SceSize SceModule::bssSize

The size of the BSS segment.

◆ nSegments

u8 SceModule::nSegments

The number of segments the module consists of.

◆ padding2

u8 SceModule::padding2[3]

Reserved.

◆ segmentAddr

u32 SceModule::segmentAddr[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the start address of each segment.

◆ segmentSize

SceSize SceModule::segmentSize[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the size of each segment.

◆ segmentAlign

u32 SceModule::segmentAlign[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the alignment information of each segment.

◆ moduleStartThreadPriority

s32 SceModule::moduleStartThreadPriority

The priority of the module start thread.

◆ moduleStartThreadStacksize

SceSize SceModule::moduleStartThreadStacksize

The stack size of the module start thread.

◆ moduleStartThreadAttr

SceUInt SceModule::moduleStartThreadAttr

The attributes of the module start thread.

◆ moduleStopThreadPriority

s32 SceModule::moduleStopThreadPriority

The priority of the module stop thread.

◆ moduleStopThreadStacksize

SceSize SceModule::moduleStopThreadStacksize

The stack size of the module stop thread.

◆ moduleStopThreadAttr

SceUInt SceModule::moduleStopThreadAttr

The attributes of the module stop thread.

◆ moduleRebootBeforeThreadPriority

s32 SceModule::moduleRebootBeforeThreadPriority

The priority of the module reboot before thread.

◆ moduleRebootBeforeThreadStacksize

SceSize SceModule::moduleRebootBeforeThreadStacksize

The stack size of the module reboot before thread.

◆ moduleRebootBeforeThreadAttr

SceUInt SceModule::moduleRebootBeforeThreadAttr

The attributes of the module reboot before thread.

◆ countRegVal

u32 SceModule::countRegVal

The value of the coprocessor 0's count register when the module is created.

◆ segmentChecksum

u32 SceModule::segmentChecksum

The segment checksum of the module's segments.

◆ textSegmentChecksum

u32 SceModule::textSegmentChecksum

TEXT segment checksum of the module.

◆ computeTextSegmentChecksum

u32 SceModule::computeTextSegmentChecksum

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.


The documentation for this struct was generated from the following file: