34#ifndef _MINIOS_MM_HEAP_H_
35#define _MINIOS_MM_HEAP_H_
void kfree(void *ptr)
Marks the block free in its boundary tag and coalesces adjacent free blocks (forward and backward)....
Definition heap.c:196
size_t heap_free_bytes(void)
Walks the boundary-tag chain and sums the sizes of all free blocks. O(n) in the number of heap blocks...
Definition heap.c:228
void heap_init(void)
Maps the first heap page at HEAP_START via vmm_map_page() and writes the initial free-block boundary ...
Definition heap.c:135
void * kmalloc(size_t size)
Uses a first-fit boundary-tag strategy. Acquires heap_lock (spinlock_irqsave) before scanning....
Definition heap.c:152
uint16_t size
Definition irq.h:0