Struct os::mm::frame_allocator::StackFrameAllocator
source · [−]Expand description
an implementation for frame allocator
Fields
current: usize
end: usize
recycled: Vec<usize>
Implementations
sourceimpl StackFrameAllocator
impl StackFrameAllocator
pub fn init(&mut self, l: PhysPageNum, r: PhysPageNum)
Trait Implementations
sourceimpl FrameAllocator for StackFrameAllocator
impl FrameAllocator for StackFrameAllocator
fn new() -> Self
fn alloc(&mut self) -> Option<PhysPageNum>
fn dealloc(&mut self, ppn: PhysPageNum)
Auto Trait Implementations
impl RefUnwindSafe for StackFrameAllocator
impl Send for StackFrameAllocator
impl Sync for StackFrameAllocator
impl Unpin for StackFrameAllocator
impl UnwindSafe for StackFrameAllocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more