pub fn sys_mmap(
addr: u64,
len: u64,
prot: u32,
flags: u32,
fd_raw: u64,
offset: u64,
) -> Result<u64, SyscallError>Expand description
SYS_MMAP (100): map anonymous virtual memory.
Only MAP_ANONYMOUS mappings are supported at this stage; file-backed mmaps
return NotImplemented. Both MAP_PRIVATE and MAP_SHARED are accepted
for anonymous memory (they are equivalent when there is no backing file).
Returns the mapped virtual address on success, or a negative error code.