Function nix::sys::mman::mlockall[][src]

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.

Safety

addr must meet all the requirements described in the mlockall(2) man page.