Function shadow_shmem::raw_syscall::mmap
source · pub unsafe fn mmap<'a>(
addr: *mut c_void,
length: u64,
prot: ProtFlags,
flags: MapFlags,
fd: i32,
offset: u64,
) -> Result<&'a mut [u8], Errno>
Expand description
§Safety
addr
should be a pointer hinting at a mapping location, or null. The other arguments should
be valid as defined by the x86-64 system call interface.