Function nix::sys::mman::mlock [−][src]
pub unsafe fn mlock(addr: *const c_void, length: size_t) -> Result<()>
Locks all memory pages that contain part of the address range with length
bytes starting at
addr
. Locked pages never move to the swap area.