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

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

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>>[src]

Expand description

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

Loading content...

Implementors

Loading content...