Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/dependencies/switch/libnx-dyn/address_space.h
774 views
1
#include <switch.h>
2
3
/**
4
* @brief Initialize address space manager
5
*
6
* This should be called early in crt0 and should not be called by
7
* any applications or utility functions before using address space
8
* management functions.
9
*/
10
Result as_init();
11
12
/**
13
* @brief Finalize address space manager
14
*
15
* Called by crt0 and should not be called by applications or
16
* utility functions.
17
*/
18
void as_finalize();
19
20
/**
21
* @brief Finds and reserves an unmapped region of address space
22
*
23
* @param len The length of address space to reserve
24
*/
25
void *as_reserve(size_t len);
26
27
/**
28
* @brief Frees a region of address space reserved by \ref as_reserve
29
*
30
* The address and size must exactly match an entire memory region
31
* reserved by \ref as_reserve.
32
*
33
* @param addr Base of the reserved address space
34
* @param len Length of the reserved address space
35
*/
36
void as_release(void *addr, size_t len);
37
38