nn_ro

Family of src/nx/nn/ro.hook. The hooks_off setting turns a family off by its name.

The native nn::ro (ro.c), for tools/hookgen, in the language of nn/hooks.hook. nn::ro: the modules of the program and the NROs it loads, as the game's linker (its rtld module) keeps them for the SDK. These are the functions of the SDK that need the rtld's lists of modules or call it back, every one of them of nn::ro: with them answered here, nothing of the SDK reaches what an rtld would have left. The family is installed only when the runtime links the game in the rtld's place (runtime/linker.c). Not here, as the SDK answers them from the module's own header where no rtld left a list: FindDynamicSegment, GetModuleNamePointer, GetModuleName and GetModuleId

nn::ro::Initialize() source

_ZN2nn2ro10InitializeEv
As C: void ()
Handler: nnro_initialize (ro.c)

nn::ro::InitializeForRuntime() source

_ZN2nn2ro20InitializeForRuntimeEv
As C: void ()
Handler: nnro_initialize_for_runtime (ro.c)

nn::ro::InitializeWithPortName(char const*) source

_ZN2nn2ro22InitializeWithPortNameEPKc
As C: void (const char* port)
Handler: nnro_initialize_with_port_name (ro.c)

nn::ro::Finalize() source

_ZN2nn2ro8FinalizeEv
As C: void ()
Handler: nnro_finalize (ro.c)

nn::ro::GetBufferSize(unsigned long*, void const*) source

_ZN2nn2ro13GetBufferSizeEPmPKv
As C: u32 (addr size, addr nro)
Handler: nnro_get_buffer_size (ro.c)

nn::ro::LookupSymbol(unsigned long*, char const*) source

_ZN2nn2ro12LookupSymbolEPmPKc
As C: u32 (addr address, const char* name)
Handler: nnro_lookup_symbol (ro.c)

nn::ro::LookupNextSymbol(unsigned long*, char const*) source

_ZN2nn2ro16LookupNextSymbolEPmPKc
As C: u32 (addr address, const char* name)
Handler: nnro_lookup_next_symbol (ro.c)

nn::ro::ProtectFullRelroForAllModules() source

_ZN2nn2ro29ProtectFullRelroForAllModulesEv
As C: void ()
Handler: nnro_protect_full_relro_for_all_modules (ro.c)

nn::ro::ProtectRelro(void const*, void const*, void const*, void const*, void const*) source

_ZN2nn2ro12ProtectRelroEPKvS2_S2_S2_S2_
As C: void (addr first, addr second, addr third, addr fourth, addr fifth)
Handler: nnro_protect_relro (ro.c)

the NROs the game loads: linked by the runtime's linker, mapped by ldr:ro's code with no session

nn::ro::LookupModuleSymbol(unsigned long*, nn::ro::Module const*, char const*) source

_ZN2nn2ro18LookupModuleSymbolEPmPKNS0_6ModuleEPKc
As C: u32 (addr address, addr module, const char* name)
Handler: nnro_lookup_module_symbol (ro.c)

nn::ro::RegisterModuleInfo(nn::ro::RegistrationInfo*, void const*) source

_ZN2nn2ro18RegisterModuleInfoEPNS0_16RegistrationInfoEPKv
As C: u32 (addr info, addr nrr)
Handler: nnro_register_module_info (ro.c)

nn::ro::RegisterModuleInfo(nn::ro::RegistrationInfo*, void const*, unsigned int) source

_ZN2nn2ro18RegisterModuleInfoEPNS0_16RegistrationInfoEPKvj
As C: u32 (addr info, addr nrr, u32 process)
Handler: nnro_register_module_info_process (ro.c)

nn::ro::UnregisterModuleInfo(nn::ro::RegistrationInfo*) source

_ZN2nn2ro20UnregisterModuleInfoEPNS0_16RegistrationInfoE
As C: void (addr info)
Handler: nnro_unregister_module_info (ro.c)

nn::ro::LoadModule(nn::ro::Module*, void const*, void*, unsigned long, int) source

_ZN2nn2ro10LoadModuleEPNS0_6ModuleEPKvPvmi
As C: u32 (addr module, addr image, addr buffer, u64 size, i32 flag)
Handler: nnro_load_module (ro.c)

nn::ro::LoadModule(nn::ro::Module*, void const*, void*, unsigned long, int, bool) source

_ZN2nn2ro10LoadModuleEPNS0_6ModuleEPKvPvmib
As C: u32 (addr module, addr image, addr buffer, u64 size, i32 flag, bool check)
Handler: nnro_load_module_check (ro.c)

nn::ro::UnloadModule(nn::ro::Module*) source

_ZN2nn2ro12UnloadModuleEPNS0_6ModuleE
As C: void (addr module)
Handler: nnro_unload_module (ro.c)


Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.