nix::sys::mmanFunction mremap
source pub unsafe fn mremap(
addr: NonNull<c_void>,
old_size: size_t,
new_size: size_t,
flags: MRemapFlags,
new_address: Option<NonNull<c_void>>,
) -> Result<NonNull<c_void>>
Expand description
Expands (or shrinks) an existing memory mapping, potentially moving it at
the same time.
ยงSafety
See the mremap(2)
man page for
detailed requirements.