Trait os::mm::frame_allocator::FrameAllocator

source ·
trait FrameAllocator {
    // Required methods
    fn new() -> Self;
    fn alloc(&mut self) -> Option<PhysPageNum>;
    fn dealloc(&mut self, ppn: PhysPageNum);
}

Required Methods§

source

fn new() -> Self

source

fn alloc(&mut self) -> Option<PhysPageNum>

source

fn dealloc(&mut self, ppn: PhysPageNum)

Object Safety§

This trait is not object safe.

Implementors§