pub struct EmptyFrameAllocator;
Expand description
A frame allocator that doesn’t allocate any frames. Used as a placeholder.
This struct does not implement actual memory allocation and simply returns None
for every
frame allocation request.
Trait Implementations§
Source§impl FrameAllocator<Size4KiB> for EmptyFrameAllocator
impl FrameAllocator<Size4KiB> for EmptyFrameAllocator
Source§fn allocate_frame(&mut self) -> Option<PhysFrame>
fn allocate_frame(&mut self) -> Option<PhysFrame>
Always returns None
as this allocator does not provide memory frames.