Function lrs::syscall::mremap

Remaps a file in memory.

Syntax

unsafe fn mremap(addr: usize, old_len: usize, new_len: usize, flags: i32, new_addr: usize) -> isize

Arguments

NameDescription
addr

The address of the map.

old_len

The current length of the map.

new_len

The new length of the map.

flags

Flags used to remap the memory.

new_addr

The new address at which the memory will be mapped.

Return value

Returns a pointer to the new map or an error value.

See also