Skip to main content

mlock

Function mlock 

Source
pub fn mlock(ptr: *mut u8, size: usize) -> Result<(), AllocFailed>
Expand description

Lock memory to prevent swapping (for sensitive data).