15 typedef struct heap heap_t;
void * heap_alloc(heap_t *heap, uint64_t size)
Allocate memory from a heap.
heap_t * heap_create(pagetable_t *pt, void *vaddr, uint64_t maxpages)
Create a new heap from which to allocate virtual memory.
void heap_free(heap_t *heap, void *ptr)
Free memory previously allocated with heap_alloc.
void heap_destroy(heap_t *heap)
Destroy a heap, returning its memory to page table.