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)
—Synchronizes a memory-mapping with its backing
storage.
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.