pub unsafe fn swapoff<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Expand description
Stop swapping to file/device.
§Example
let filename = "/dev/sda-no-exist";
let ret = unsafe { nc::swapoff(filename) };
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EPERM));