PSPSDK 2026-11-16
Loading...
Searching...
No Matches
SceResidentLibraryEntryTable Struct Reference

This structure is used to record the functions a resident library provides to other modules. More...

#include <kernel/psploadcore.h>

Data Fields

const char * lib_name
 The name of the library.
 
u8 version [2]
 The version of the library.
 
s16 attribute
 The library's attributes.
 
u8 len
 The length of this entry table in 32-Bit words.
 
u8 var_stub_count
 The number of exported variables by the resident library.
 
u16 func_stub_count
 The number of exported functions by the resident library.
 
u32 * entry_table
 Pointer to an array of NIDs, followed by an array of function- and variable pointers.
 
u16 unk16
 Unknown.
 
u8 unk18
 Unknown.
 
u8 unk19
 Unknown.
 

Detailed Description

This structure is used to record the functions a resident library provides to other modules.

This entry table is used to register a resident library to the system. A module can register multiple libraries and multiple libraries with the same name can be in use simultaneously .

Field Documentation

◆ attribute

s16 SceResidentLibraryEntryTable::attribute

The library's attributes.

One or more of ::SceLibAttr.

◆ entry_table

u32* SceResidentLibraryEntryTable::entry_table

Pointer to an array of NIDs, followed by an array of function- and variable pointers.

Each function-/variable pointer must have a NID value. These arrays are used to correctly perform linking between a resident library and its corresponding stub libraries.

◆ func_stub_count

u16 SceResidentLibraryEntryTable::func_stub_count

The number of exported functions by the resident library.

◆ len

u8 SceResidentLibraryEntryTable::len

The length of this entry table in 32-Bit words.

Set this to "LIBRARY_ENTRY_TABLE_NEW_LEN". Use this member when you want to iterate through a list of entry tables (size = len * 4).

◆ lib_name

const char* SceResidentLibraryEntryTable::lib_name

The name of the library.

◆ unk16

u16 SceResidentLibraryEntryTable::unk16

Unknown.

◆ unk18

u8 SceResidentLibraryEntryTable::unk18

Unknown.

◆ unk19

u8 SceResidentLibraryEntryTable::unk19

Unknown.

◆ var_stub_count

u8 SceResidentLibraryEntryTable::var_stub_count

The number of exported variables by the resident library.

◆ version

u8 SceResidentLibraryEntryTable::version[2]

The version of the library.

It consists of a 'major' and 'minor' field. If you want to register another version of an already registered resident library, make sure that the new library has a higher version than all its currently registered versions.


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