process_madvise

Function process_madvise 

Source
pub unsafe fn process_madvise(
    pid_fd: &impl AsRawFd,
    mem: &[iovec],
    advice: u32,
    flags: u32,
) -> Result<usize>
Expand description

Give advice about a memory range in a process.

§Safety

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