pub struct BuddyFrameAllocator;Expand description
Wrapper around our buddy allocator implementing the x86_64 crate’s FrameAllocator trait.
This is used by OffsetPageTable when it needs to allocate intermediate page tables.
Trait Implementations§
Source§impl FrameAllocator<Size4KiB> for BuddyFrameAllocator
impl FrameAllocator<Size4KiB> for BuddyFrameAllocator
Source§fn allocate_frame(&mut self) -> Option<X86PhysFrame<Size4KiB>>
fn allocate_frame(&mut self) -> Option<X86PhysFrame<Size4KiB>>
Performs the allocate frame operation.
Auto Trait Implementations§
impl Freeze for BuddyFrameAllocator
impl RefUnwindSafe for BuddyFrameAllocator
impl Send for BuddyFrameAllocator
impl Sync for BuddyFrameAllocator
impl Unpin for BuddyFrameAllocator
impl UnsafeUnpin for BuddyFrameAllocator
impl UnwindSafe for BuddyFrameAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more