⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

FrameAllocator

Trait FrameAllocator 

Source
pub trait FrameAllocator {
    // Required method
    fn allocate_frames(
        &mut self,
        count: usize,
        numa_node: Option<usize>,
    ) -> Result<FrameNumber, FrameAllocatorError>;
}
Expand description

Frame allocator trait for page mapper

Required Methods§

Source

fn allocate_frames( &mut self, count: usize, numa_node: Option<usize>, ) -> Result<FrameNumber, FrameAllocatorError>

Allocate frames

Implementors§