[−][src]Function linux::syscall::mmap
pub unsafe fn mmap(
addr: usize,
len: usize,
prot: c_int,
flags: c_int,
fd: c_int,
off: u64
) -> isize
Maps a file into memory.
[argument, addr] The address at which to map the file.
[argument, len] The length of the map.
[argument, prot] How the memory will be protected.
[argument, flags] Flags used when mapping a file.
[argument, fd] The file to map.
[argument, off] The offset of the file at which the map is started.
[return_value] Returns a pointer to the map or an error value.
= See also
- link:man:mmap(2)