libctru  v2.4.1
Functions
mappable.h File Reference

Mappable memory allocator. More...

#include <3ds/types.h>

Go to the source code of this file.

Functions

void mappableInit (u32 addrMin, u32 addrMax)
 Initializes the mappable allocator. More...
 
void * mappableAlloc (size_t size)
 Finds a mappable memory area. More...
 
void mappableFree (void *mem)
 Frees a mappable area (stubbed). More...
 

Detailed Description

Mappable memory allocator.

Function Documentation

◆ mappableAlloc()

void* mappableAlloc ( size_t  size)

Finds a mappable memory area.

Parameters
sizeSize of the area to find.
Returns
The mappable area.

◆ mappableFree()

void mappableFree ( void *  mem)

Frees a mappable area (stubbed).

Parameters
memMappable area to free.

◆ mappableInit()

void mappableInit ( u32  addrMin,
u32  addrMax 
)

Initializes the mappable allocator.

Parameters
addrMinMinimum address.
addrMaxMaxium address.