Function nix::sys::mman::mremap

source ·
pub unsafe fn mremap(
    addr: *mut c_void,
    old_size: size_t,
    new_size: size_t,
    flags: MRemapFlags,
    new_address: Option<*mut c_void>
) -> Result<*mut c_void>
Available on crate feature mman only.
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.