Go to the source code of this file.
Data Structures | |
struct | loadfile_elf32_ehdr_ |
struct | loadfile_elf32_phdr_ |
struct | loadfile_elf32_shdr_ |
struct | loadfile_file_load_handler_struct_ |
struct | loadfile_ee_elf_ringbuffer_content_ |
struct | loadfile_allocate_handler_struct_ |
struct | SetLoadfileCallbacks_struct_ |
Macros | |
#define | modload_IMPORTS_start DECLARE_IMPORT_TABLE(modload, 1, 1) |
#define | modload_IMPORTS_end END_IMPORT_TABLE |
#define | I_GetModloadInternalData DECLARE_IMPORT(3, GetModloadInternalData); |
#define | I_ReBootStart DECLARE_IMPORT(4, ReBootStart) |
#define | I_LoadModuleAddress DECLARE_IMPORT(5, LoadModuleAddress) |
#define | I_LoadModule DECLARE_IMPORT(6, LoadModule) |
#define | I_LoadStartModule DECLARE_IMPORT(7, LoadStartModule) |
#define | I_StartModule DECLARE_IMPORT(8, StartModule) |
#define | I_LoadModuleBufferAddress DECLARE_IMPORT(9, LoadModuleBufferAddress) |
#define | I_LoadModuleBuffer DECLARE_IMPORT(10, LoadModuleBuffer) |
#define | I_LoadStartKelfModule DECLARE_IMPORT(11, LoadStartKelfModule) |
#define | I_SetSecrmanCallbacks DECLARE_IMPORT(12, SetSecrmanCallbacks) |
#define | I_SetCheckKelfPathCallback DECLARE_IMPORT(13, SetCheckKelfPathCallback) |
#define | I_GetLoadfileCallbacks DECLARE_IMPORT(14, GetLoadfileCallbacks) |
#define | I_IsIllegalBootDevice DECLARE_IMPORT(15, IsIllegalBootDevice) |
Functions | |
void | GetModloadInternalData (void **pInternalData) |
int | ReBootStart (const char *command, unsigned int flags) |
int | LoadModuleAddress (const char *name, void *addr, int offset) |
int | LoadModule (const char *name) |
int | LoadStartModule (const char *name, int arglen, const char *args, int *result) |
int | StartModule (int modid, const char *name, int arglen, const char *args, int *result) |
int | LoadModuleBufferAddress (void *buffer, void *addr, int offset) |
int | LoadModuleBuffer (void *buffer) |
int | LoadStartKelfModule (const char *name, int arglen, const char *args, int *result) |
void | SetSecrmanCallbacks (SecrCardBootFile_callback_t SecrCardBootFile_fnc, SecrDiskBootFile_callback_t SecrDiskBootFile_fnc, SetLoadfileCallbacks_callback_t SetLoadfileCallbacks_fnc) |
void | SetCheckKelfPathCallback (CheckKelfPath_callback_t CheckKelfPath_fnc) |
void | GetLoadfileCallbacks (CheckKelfPath_callback_t *CheckKelfPath_fnc, SetLoadfileCallbacks_callback_t *SetLoadfileCallbacks_fnc) |
int | IsIllegalBootDevice (const char *path) |
Kernel module loader.
Definition in file modload.h.
struct loadfile_elf32_ehdr_ |
struct loadfile_elf32_phdr_ |
struct loadfile_elf32_shdr_ |
struct loadfile_file_load_handler_struct_ |
Data Fields | ||
---|---|---|
int | fd | |
const char * | filename | |
u8 * | section_contents | |
int | unknown_0C | |
loadfile_elf32_ehdr_t | elf_header | |
loadfile_elf32_phdr_t * | program_header | |
loadfile_elf32_shdr_t * | section_headers | |
int | unknown_4C |
struct loadfile_ee_elf_ringbuffer_content_ |
struct loadfile_allocate_handler_struct_ |
Data Fields | ||
---|---|---|
int | read_buffer_length | |
int | read_buffer_offset | |
loadfile_ee_elf_ringbuffer_content_t | ring_buffer_contents[2] | |
int | ring_buffer_index | |
int | unknown_2C |
struct SetLoadfileCallbacks_struct_ |
#define modload_IMPORTS_start DECLARE_IMPORT_TABLE(modload, 1, 1) |
#define I_GetModloadInternalData DECLARE_IMPORT(3, GetModloadInternalData); |
#define I_LoadModuleAddress DECLARE_IMPORT(5, LoadModuleAddress) |
#define I_LoadStartModule DECLARE_IMPORT(7, LoadStartModule) |
#define I_LoadModuleBufferAddress DECLARE_IMPORT(9, LoadModuleBufferAddress) |
#define I_LoadModuleBuffer DECLARE_IMPORT(10, LoadModuleBuffer) |
#define I_LoadStartKelfModule DECLARE_IMPORT(11, LoadStartKelfModule) |
#define I_SetSecrmanCallbacks DECLARE_IMPORT(12, SetSecrmanCallbacks) |
#define I_SetCheckKelfPathCallback DECLARE_IMPORT(13, SetCheckKelfPathCallback) |
#define I_GetLoadfileCallbacks DECLARE_IMPORT(14, GetLoadfileCallbacks) |
#define I_IsIllegalBootDevice DECLARE_IMPORT(15, IsIllegalBootDevice) |
typedef int(* loadfile_read_chunk_callback_t) (int fd, loadfile_allocate_handler_struct_t *allocate_info, void *read_callback_userdata) |
typedef int(* loadfile_elf_load_proc_callback_t) (loadfile_allocate_handler_struct_t *allocate_info, loadfile_file_load_handler_struct_t *flhs, void *read_callback_userdata, loadfile_read_chunk_callback_t read_callback) |
typedef int(* loadfile_check_valid_ee_elf_callback_t) (loadfile_allocate_handler_struct_t *allocate_info, loadfile_file_load_handler_struct_t *flhs) |
typedef int(* loadfile_elf_get_program_header_callback_t) (loadfile_allocate_handler_struct_t *allocate_info, loadfile_file_load_handler_struct_t *flhs) |
typedef void *(* loadfile_elf_load_alloc_buffer_from_heap_callback_t) (u32 size) |
typedef void(* loadfile_elf_load_dealloc_buffer_from_heap_callback_t) (void *buffer) |
typedef int(* loadfile_load_kelf_from_card_callback_t) (loadfile_allocate_handler_struct_t *allocate_info, loadfile_file_load_handler_struct_t *flhs, int port, int slot, int *result_out, int *result_module_out) |
typedef int(* loadfile_load_kelf_from_disk_callback_t) (loadfile_allocate_handler_struct_t *allocate_info, loadfile_file_load_handler_struct_t *flhs, int *result_out, int *result_module_out) |
typedef void *(* SecrCardBootFile_callback_t) (int port, int slot, void *buffer) |
typedef void *(* SecrDiskBootFile_callback_t) (void *buffer) |
typedef void(* SetLoadfileCallbacks_callback_t) (SetLoadfileCallbacks_struct_t *callbackinfo) |
typedef int(* CheckKelfPath_callback_t) (const char *filename, int *port, int *slot) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |