pub fn map(
addr_hint: *const (),
page_count: usize,
guard_pages_count: usize,
resource_to_map: Option<Ri>,
resource_off: Option<isize>,
flags: MemMapFlags,
) -> Result<(Ri, NonNull<[u8]>), ErrorStatus>Expand description
See SyscallNum::SysMemMap and RawMemMapConfig
You don’t have to provide the MemMapFlags::MAP_RESOURCE flag, it is automatically provided if resource_to_map is Some
§Returns
the resource ID of the Tracked Mapping and the slice of bytes in the mapping