pub trait Mapper {
    // Required method
    fn map(
        &self,
        vmar_offset: usize,
        vmo: &Vmo,
        vmo_offset: u64,
        length: usize,
        flags: VmarFlags
    ) -> Result<usize, Status>;
}
Expand description

A trait so that callers of map_elf_segments can hook the map operation.

Required Methods§

source

fn map( &self, vmar_offset: usize, vmo: &Vmo, vmo_offset: u64, length: usize, flags: VmarFlags ) -> Result<usize, Status>

Map memory from the given VMO at the specified location.

See zx::Vmar::map for more details.

Implementations on Foreign Types§

source§

impl Mapper for Vmar

source§

fn map( &self, vmar_offset: usize, vmo: &Vmo, vmo_offset: u64, length: usize, flags: VmarFlags ) -> Result<usize, Status>

Implementors§