[][src]Trait x86_64::structures::paging::FrameAllocator

pub unsafe trait FrameAllocator<S: PageSize> {
    fn allocate_frame(&mut self) -> Option<PhysFrame<S>>;
}

A trait for types that can allocate a frame of memory.

This trait is unsafe to implement because the implementer must guarantee that the allocate_frame method returns only unique unused frames.

Required methods

fn allocate_frame(&mut self) -> Option<PhysFrame<S>>

Allocate a frame of the appropriate size and return it if possible.

Loading content...

Implementors

Loading content...