|
PSPSDK 2026-11-16
|
This structure represents a resident library control block. More...
#include <kernel/psploadcore.h>

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