void page_aligned_free(void *p, size_t size)
free a previously allocated page-aligned region.
Status mem_Commit(u8 *p, size_t size, int prot)
Status mem_Release(u8 *p, size_t size)
static const int mmap_flags
Status mem_Decommit(u8 *p, size_t size)
void * mmap(void *start, size_t len, int prot, int flags, int fd, off_t ofs)
void * page_aligned_alloc(size_t size)
allocate memory aligned to the system page size.
Status mem_Protect(u8 *p, size_t size, int prot)
Status mem_Reserve(size_t size, u8 **pp)
static Status StatusFromMap(void *ret)