Function rustix::mm::msync

source · []
pub unsafe fn msync(
    addr: *mut c_void,
    len: usize,
    flags: MsyncFlags
) -> Result<()>
Available on crate feature mm only.
Expand description

msync(addr, len, flags)—Declares an expected access pattern for a memory-mapped file.

Safety

addr must be a valid pointer to memory that is appropriate to call msync on. Some forms of msync may mutate the memory or evoke a variety of side-effects on the mapping and/or the file.

References