nix::sys::mman

Function madvise

source
pub unsafe fn madvise(
    addr: NonNull<c_void>,
    length: size_t,
    advise: MmapAdvise,
) -> Result<()>
Expand description

give advice about use of memory

ยงSafety

See the madvise(2) man page. Take special care when using MmapAdvise::MADV_FREE.