Method lrs::mem_map::MemMap::anon

Creates an memory mapping which is not backed by a file.

Syntax

impl MemMap {
    fn anon(len: usize, protection: MemProtFlags, shared: bool, flags: MemMapFlags) -> Result<MemMap, Errno>
}

Arguments

NameDescription
len

The size of the mapping.

protection

The protection of the mapped region.

shared

Whether this mapping can be shared with other processes.

flags

Flags to use when creating this mapping.

Remarks

The real size of the mapping can be larger than the len argument.

The MAP_FIXED flag must not be used with this interface.

See also