libnx  v4.2.2
ro.h
Go to the documentation of this file.
1 /**
2  * @file ro.h
3  * @brief Relocatable Objects (ro) service IPC wrapper.
4  * @author SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 #include "../services/ldr.h"
11 
12 /// Initialize ldr:ro.
14 
15 /// Exit ldr:ro.
16 void ldrRoExit(void);
17 
18 /// Gets the Service object for the actual ldr:ro service session.
20 
21 /// Initialize ro:1. Only available with [7.0.0+].
22 Result ro1Initialize(void);
23 
24 /// Exit ro:1.
25 void ro1Exit(void);
26 
27 /// Gets the Service object for the actual ro:1 service session.
29 
30 /// Initialize ro:dmnt. Only available with [3.0.0+].
32 
33 /// Exit ro:dmnt.
34 void roDmntExit(void);
35 
36 /// Gets the Service object for the actual ro:dmnt service session.
38 
39 Result ldrRoLoadNro(u64* out_address, u64 nro_address, u64 nro_size, u64 bss_address, u64 bss_size);
40 Result ldrRoUnloadNro(u64 nro_address);
41 Result ldrRoLoadNrr(u64 nrr_address, u64 nrr_size);
42 Result ldrRoUnloadNrr(u64 nrr_address);
43 Result ldrRoLoadNrrEx(u64 nrr_address, u64 nrr_size);
44 
45 Result ro1LoadNro(u64* out_address, u64 nro_address, u64 nro_size, u64 bss_address, u64 bss_size);
46 Result ro1UnloadNro(u64 nro_address);
47 Result ro1LoadNrr(u64 nrr_address, u64 nrr_size);
48 Result ro1UnloadNrr(u64 nrr_address);
49 Result ro1LoadNrrEx(u64 nrr_address, u64 nrr_size);
50 
51 Result roDmntGetProcessModuleInfo(u64 pid, LoaderModuleInfo *out_module_infos, size_t max_out_modules, s32 *num_out);
LoaderModuleInfo
Definition: ldr.h:25
s32
int32_t s32
32-bit signed integer.
Definition: types.h:27
ro1GetServiceSession
Service * ro1GetServiceSession(void)
Gets the Service object for the actual ro:1 service session.
ro1Initialize
Result ro1Initialize(void)
Initialize ro:1. Only available with [7.0.0+].
roDmntInitialize
Result roDmntInitialize(void)
Initialize ro:dmnt. Only available with [3.0.0+].
roDmntExit
void roDmntExit(void)
Exit ro:dmnt.
u64
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
Result
u32 Result
Function error code result type.
Definition: types.h:44
ldrRoInitialize
Result ldrRoInitialize(void)
Initialize ldr:ro.
ldrRoGetServiceSession
Service * ldrRoGetServiceSession(void)
Gets the Service object for the actual ldr:ro service session.
roDmntGetServiceSession
Service * roDmntGetServiceSession(void)
Gets the Service object for the actual ro:dmnt service session.
Service
Service object structure.
Definition: service.h:13
ldrRoExit
void ldrRoExit(void)
Exit ldr:ro.
ro1Exit
void ro1Exit(void)
Exit ro:1.