FrameAlloc

Trait FrameAlloc 

Source
pub trait FrameAlloc {
    // Required methods
    fn alloc_4k(&mut self) -> Option<PhysicalPage<Size4K>>;
    fn free_4k(&mut self, pa: PhysicalPage<Size4K>);
}
Expand description

Minimal allocator that hands out 4 KiB page-table frames.

Required Methods§

Source

fn alloc_4k(&mut self) -> Option<PhysicalPage<Size4K>>

Allocate a zeroed 4 KiB page suitable for a page-table.

Source

fn free_4k(&mut self, pa: PhysicalPage<Size4K>)

Deallocate a zeroed 4 KiB page suitable for a page-table.

Implementors§