x86_64::structures::paging

Trait FrameDeallocator

Source
pub trait FrameDeallocator<S: PageSize> {
    // Required method
    unsafe fn deallocate_frame(&mut self, frame: PhysFrame<S>);
}
Expand description

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

Required Methods§

Source

unsafe fn deallocate_frame(&mut self, frame: PhysFrame<S>)

Deallocate the given unused frame.

§Safety

The caller must ensure that the passed frame is unused.

Implementors§