madvise

Function madvise 

Source
pub unsafe fn madvise(mem: *mut [u8], advice: u32) -> Result<()>
Expand description

Give advice about a memory range.

ยงSafety

The application must ensure that applying the advice is safe. For example, a MADV_DONTNEED advice on a memory range in the heap could lead to memory corruption.