pub unsafe fn madvise(
addr: *mut c_void,
len: usize,
advice: Advice,
) -> Result<()>Expand description
posix_madvise(addr, len, advice)—Declares an expected access pattern
for a memory-mapped file.
§Safety
addr must be a valid pointer to memory that is appropriate to call
posix_madvise on. Some forms of advice may mutate the memory or evoke a
variety of side-effects on the mapping and/or the file.