libctru  v2.4.1
mappable.h
Go to the documentation of this file.
1 /**
2  * @file mappable.h
3  * @brief Mappable memory allocator.
4  */
5 #pragma once
6 
7 #include <3ds/types.h>
8 
9 /**
10  * @brief Initializes the mappable allocator.
11  * @param addrMin Minimum address.
12  * @param addrMax Maxium address.
13  */
14 void mappableInit(u32 addrMin, u32 addrMax);
15 
16 /**
17  * @brief Finds a mappable memory area.
18  * @param size Size of the area to find.
19  * @return The mappable area.
20  */
21 void* mappableAlloc(size_t size);
22 
23 /**
24  * @brief Frees a mappable area (stubbed).
25  * @param mem Mappable area to free.
26  */
27 void mappableFree(void* mem);
void mappableInit(u32 addrMin, u32 addrMax)
Initializes the mappable allocator.
void * mappableAlloc(size_t size)
Finds a mappable memory area.
void mappableFree(void *mem)
Frees a mappable area (stubbed).
Various system types.
uint32_t u32
32-bit unsigned integer
Definition: types.h:23