phyframe_t * buddy_alloc_n_exact(size_t nframes)
Allocate nframes of contiguous physical memory.
void buddy_dump_all()
Dump the state of the buddy allocator.
void buddy_free_n(pfn_t pfn, size_t nframes)
Free nframes of contiguous physical memory.
void buddy_init(size_t max_nframes)
Initialize the buddy allocator with the given maximum number of frames.
void buddy_reserve_n(pfn_t pfn, size_t nframes)
Reserve several frames at the given physical frame number.