page_pool_alloc

Trait PoolSource

Source
pub trait PoolSource:
    Inspect
    + Send
    + Sync {
    // Required methods
    fn address_bias(&self) -> u64;
    fn file_offset(&self, address: u64) -> u64;
    fn mappable(&self) -> MappableRef<'_>;
}
Expand description

A source for pool allocations.

Required Methods§

Source

fn address_bias(&self) -> u64

The bias to apply to the physical address of each allocation.

Source

fn file_offset(&self, address: u64) -> u64

Translates a physical address into the file offset to use when mapping the page.

Source

fn mappable(&self) -> MappableRef<'_>

Returns the OS object to map pages from.

Implementors§