Function nix::sys::mman::mlockall
pub fn mlockall(flags: MlockAllFlags) -> Result<()>
Documentation
Locks all memory pages mapped into this process’ address space.
Locked pages never move to the swap area. For more information, see mlockall(2)
.