mmap(2)
DESCRIPTION
Maps anonymous or file-backed memory into the process.
SYNOPSIS
long mmap(void *addr, long length, uint32_t prot, uint32_t flags, int fd, long offset);
RETURN VALUE
- Returns a non-negative result on success. Negative values are ABI errno codes.
ERRORS
-EBADF- .
-EINVAL- .
-ENOMEM- .
-ENOSYS- .
ABI
Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.