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

This structure represents a resident library control block. More...

#include <kernel/psploadcore.h>

Collaboration diagram for SceResidentLibrary:

Data Fields

struct SceResidentLibrary * next
 Pointer to the next resident library with the same hash value.
 
SceResidentLibraryEntryTable * lib_entry_table
 Pointer to the corresponding entry table used to register this library.
 
u8 version [2]
 The version of the library.
 
u16 attribute
 The library's attributes.
 
u16 stub_count
 The number of exported functions by the resident library.
 
u16 var_stub_count
 The number of exported variables by the resident library.
 
u32 num_exports
 The number of total exports by the resident library (the sum of stubCount and vStubCount).
 
u8 unk20
 Unknown.
 
u8 unk21
 Unknown.
 
u8 unk22
 Unknown.
 
s32 unk24
 Unknown.
 
u32 unk28
 Unknown.
 
u32 * entry_table
 Pointer to the resident library's array of NIDs, exported subroutine/variable entries.
 
u32 * exports_base_addr
 A pointer to the first export entry (either a subroutine or variable).
 
u32 exports_size
 The number of exported functions and variables + the number of NIDs used for them.
 
u32 mid_func_index
 The index into the middle of the exported functions/variables array.
 
u32 unk48
 Unknown.
 
SceStubLibrary * stub_libs
 Pointer to a linked list of corresponding loaded stub libraries.
 
u32 sys_table_entry
 The address of the system call table block belonging to the resident library.
 
u32 is_user_lib
 Indicates whether the resident library lives in User land or Kernel land.
 
u32 unk64
 Unknown.
 
char * lib_name
 The name of the library.
 
u32 lib_name_in_heap
 Indicates whether the library's name is located in the heap or not.
 
u16 sys_table_entry_start_index
 The entry index into Loadcore's system call table for an exported function of the resident library.
 
u16 extra_export_entries
 Extra export entries in the system call table entry belonging to the resident library.
 

Detailed Description

This structure represents a resident library control block.

This control block is used to manage a resident library entry table registered to the system.

Field Documentation

◆ attribute

u16 SceResidentLibrary::attribute

The library's attributes.

This member is set by the corresponding resident library entry table.

◆ entry_table

u32* SceResidentLibrary::entry_table

Pointer to the resident library's array of NIDs, exported subroutine/variable entries.

Every subroutine/variable entry has a corresponding NID used to identify it. The NID array comes first, followed by pointers to the exported functions and variables.

◆ exports_base_addr

u32* SceResidentLibrary::exports_base_addr

A pointer to the first export entry (either a subroutine or variable).

◆ exports_size

u32 SceResidentLibrary::exports_size

The number of exported functions and variables + the number of NIDs used for them.

◆ extra_export_entries

u16 SceResidentLibrary::extra_export_entries

Extra export entries in the system call table entry belonging to the resident library.

◆ is_user_lib

u32 SceResidentLibrary::is_user_lib

Indicates whether the resident library lives in User land or Kernel land.

◆ lib_entry_table

SceResidentLibraryEntryTable* SceResidentLibrary::lib_entry_table

Pointer to the corresponding entry table used to register this library.

◆ lib_name

char* SceResidentLibrary::lib_name

The name of the library.

◆ lib_name_in_heap

u32 SceResidentLibrary::lib_name_in_heap

Indicates whether the library's name is located in the heap or not.

◆ mid_func_index

u32 SceResidentLibrary::mid_func_index

The index into the middle of the exported functions/variables array.

◆ next

struct SceResidentLibrary* SceResidentLibrary::next

Pointer to the next resident library with the same hash value.

◆ num_exports

u32 SceResidentLibrary::num_exports

The number of total exports by the resident library (the sum of stubCount and vStubCount).

◆ stub_count

u16 SceResidentLibrary::stub_count

The number of exported functions by the resident library.

This member is set by the corresponding resident library entry table.

◆ stub_libs

SceStubLibrary* SceResidentLibrary::stub_libs

Pointer to a linked list of corresponding loaded stub libraries.

◆ sys_table_entry

u32 SceResidentLibrary::sys_table_entry

The address of the system call table block belonging to the resident library.

◆ sys_table_entry_start_index

u16 SceResidentLibrary::sys_table_entry_start_index

The entry index into Loadcore's system call table for an exported function of the resident library.

◆ unk20

u8 SceResidentLibrary::unk20

Unknown.

◆ unk21

u8 SceResidentLibrary::unk21

Unknown.

◆ unk22

u8 SceResidentLibrary::unk22

Unknown.

◆ unk24

s32 SceResidentLibrary::unk24

Unknown.

◆ unk28

u32 SceResidentLibrary::unk28

Unknown.

◆ unk48

u32 SceResidentLibrary::unk48

Unknown.

◆ unk64

u32 SceResidentLibrary::unk64

Unknown.

◆ var_stub_count

u16 SceResidentLibrary::var_stub_count

The number of exported variables by the resident library.

This member is set by the corresponding resident library entry table.

◆ version

u8 SceResidentLibrary::version[2]

The version of the library.

This member is set by the corresponding resident library entry table.


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