libtransistor
A userland library for the Nintendo Switch
|
Address space management. More...
Go to the source code of this file.
Functions | |
result_t | as_init () |
Initialize address space manager. More... | |
void | as_finalize () |
Finalize address space manager. More... | |
void * | as_reserve (size_t len) |
Finds and reserves an unmapped region of address space. More... | |
void | as_release (void *addr, size_t len) |
Frees a region of address space reserved by as_reserve. More... | |
Address space management.
void as_finalize | ( | ) |
Finalize address space manager.
Called by crt0 and should not be called by applications or utility functions.
result_t as_init | ( | ) |
Initialize address space manager.
This should be called early in crt0 and should not be called by any applications or utility functions before using address space management functions.
void as_release | ( | void * | addr, |
size_t | len | ||
) |
Frees a region of address space reserved by as_reserve.
The address and size must exactly match an entire memory region reserved by as_reserve.
addr | Base of the reserved address space |
len | Length of the reserved address space |
void* as_reserve | ( | size_t | len | ) |
Finds and reserves an unmapped region of address space.
len | The length of address space to reserve |