Skip to main content

map

Function map 

Source
pub unsafe fn map(
    ptr: *mut c_void,
    size: usize,
    offset: usize,
    handle: &MemHandle,
    flags: u64,
) -> Result<()>
Expand description

Map the physical allocation handle onto [ptr + offset, ptr + offset + size).

ยงSafety

ptr must come from address_reserve; size + offset must fit the reservation and the underlying allocation.