Creates an memory mapping which is not backed by a file.
impl MemMap {
fn anon(len: usize, protection: MemProtFlags, shared: bool, flags: MemMapFlags) -> Result<MemMap, Errno>
}| Name | Description |
|---|---|
| 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. |
The real size of the mapping can be larger than the len argument.
The MAP_FIXED flag must not be used with this interface.
mmap(2) and MAP_ANONYMOUS therein