#include "gm_call_trace.h"
#include "gm_debug.h"
#include "gm_internal.h"
#include "gm_malloc_debug.h"
Functions | |
GM_ENTRY_POINT void * | gm_alloc_pages (gm_size_t alloc_len) |
GM_ENTRY_POINT void | gm_free_pages (void *addr, gm_size_t alloc_len) |
|
gm_alloc_pages() allocates a page-aligned buffer of length ALLOC_LEN, where ALLOC_LEN is a multiple of GM_PAGE_LEN. Any fractional page following the buffer is wasted.
|
|
gm_free_pages() frees the pages at addr, which were previously allocated with gm_alloc_pages().
|