nix::sys::mman

Function mlockall

Source
pub fn mlockall(flags: MlockAllFlags) -> Result<()>
Expand description

Locks all memory pages mapped into this process’ address space.

Locked pages never move to the swap area. For more information, see mlockall(2).