pub unsafe fn mmap( addr: *mut c_void, length: size_t, prot: ProtFlags, flags: MapFlags, fd: RawFd, offset: off_t, ) -> Result<*mut c_void>
allocate memory, or map files or devices into memory
See the mmap(2) man page for detailed requirements.
mmap(2)