libnx  v4.6.0
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+].
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);
void ldrRoExit(void)
Exit ldr:ro.
void roDmntExit(void)
Exit ro:dmnt.
Service * ro1GetServiceSession(void)
Gets the Service object for the actual ro:1 service session.
Result ldrRoInitialize(void)
Initialize ldr:ro.
Result ro1Initialize(void)
Initialize ro:1. Only available with [7.0.0+].
void ro1Exit(void)
Exit ro:1.
Service * ldrRoGetServiceSession(void)
Gets the Service object for the actual ldr:ro service session.
Service * roDmntGetServiceSession(void)
Gets the Service object for the actual ro:dmnt service session.
Result roDmntInitialize(void)
Initialize ro:dmnt. Only available with [3.0.0+].
Definition: ldr.h:25
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27