Function init_frame_allocator
Source pub unsafe fn init_frame_allocator(
memory_map: &'static MemoryMapResponse,
) -> LockedFrameAllocator
Expand description
Create a buddy system based frame allocator with deallocation support
§Arguments
memory_map - The memory map from Limine bootloader
§Safety
This function is unsafe because the caller must guarantee that:
- The passed memory map is valid
- All frames marked as
USABLE in it are really unused