Function rustix::io::mremap
pub unsafe fn mremap(old_address: *mut c_void, old_size: usize, new_size: usize, flags: MremapFlags) -> io::Result<*mut c_void>
The portability is definied by:
#[cfg(any(linux_raw, all(libc, target_os = "linux")))]
Documentation
mremap(old_address, old_size, new_size, flags)
—Resize, modify,
and/or move a memory mapping.
For moving a mapping to a fixed address (MREMAP_FIXED
), see
mremap_fixed
.
Safety
Raw pointers and lots of special semantics.