pub struct Pmm {
bitmap_ptr: *mut u8,
total_frames: u64,
bitmap_start_frame: u64,
bitmap_end_frame: u64,
}Expand description
Bitmap-based tracker of free and used physical frames.
Fields§
§bitmap_ptr: *mut u8§total_frames: u64§bitmap_start_frame: u64§bitmap_end_frame: u64Implementations§
Source§impl Pmm
impl Pmm
Sourcepub fn init(entries: &[&Entry], hhdm_offset: u64) -> Self
pub fn init(entries: &[&Entry], hhdm_offset: u64) -> Self
Initialize the PMM from the Limine memory map.
§Panics
Panics if no single usable memory region is large enough to hold the bitmap.