Path: blob/master/dependencies/switch/libnx-dyn/address_space.h
774 views
#include <switch.h>12/**3* @brief Initialize address space manager4*5* This should be called early in crt0 and should not be called by6* any applications or utility functions before using address space7* management functions.8*/9Result as_init();1011/**12* @brief Finalize address space manager13*14* Called by crt0 and should not be called by applications or15* utility functions.16*/17void as_finalize();1819/**20* @brief Finds and reserves an unmapped region of address space21*22* @param len The length of address space to reserve23*/24void *as_reserve(size_t len);2526/**27* @brief Frees a region of address space reserved by \ref as_reserve28*29* The address and size must exactly match an entire memory region30* reserved by \ref as_reserve.31*32* @param addr Base of the reserved address space33* @param len Length of the reserved address space34*/35void as_release(void *addr, size_t len);363738