PhysMapRo

Trait PhysMapRo 

Source
pub trait PhysMapRo {
    // Required method
    unsafe fn map_ro<'a>(&self, paddr: u64, len: usize) -> &'a [u8];
}
Expand description

Map a physical region and return a read-only byte slice for its contents. You provide the implementation (identity map, kmap, etc.).

Required Methods§

Source

unsafe fn map_ro<'a>(&self, paddr: u64, len: usize) -> &'a [u8]

§Safety

The implementor must ensure the returned slice is valid for len bytes.

Implementors§