Module kernel::mem::frame_allocator
source · Expand description
The frame_allocator
module provides a frame allocator for the kernel.
Structs
- The
FrameTracker
struct represents a frame in the physical memory. It contains the frame number and is responsible for zeroing out the frame when it is created. It deallocates the frame when it is dropped, which follows the RAII idiom.
Statics
- LAZY 🔒
Traits
Functions
- Allocates a frame and returns a FrameTracker to track the allocated frame when succeeded.
- Deallocates the frame with a specific FrameNumber.
- Initializes a frame allocator that manages the physical address from
kernel_end
to MEM_LIMIT. - kernel_end 🔒 ⚠