pub unsafe fn mmap(
addr: *mut void,
length: size_t,
prot: int,
flags: int,
fd: int,
offset: off_t,
) -> Result<*mut void>Expand description
Map a file or device into memory.
On this platform this actually wraps the mmap2 system call, with the
given offset adjusted to be a page-based rather than byte-based offset.