Function rustix::io::mremap_fixed
pub unsafe fn mremap_fixed(old_address: *mut c_void, old_size: usize, new_size: usize, flags: MremapFlags, new_address: *mut c_void) -> 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, MREMAP_FIXED | flags)
—Resize,
modify, and/or move a memory mapping to a specific address.
For mremap
without moving to a specific address, see mremap
.
mremap_fixed
.
Safety
Raw pointers and lots of special semantics.