map_memory_with_flags

Function map_memory_with_flags 

Source
pub fn map_memory_with_flags<L>(
    locked: &mut Locked<L>,
    current_task: &CurrentTask,
    address: UserAddress,
    length: u64,
    flags: u32,
) -> UserAddress
Expand description

Maps length at address with PROT_READ | PROT_WRITE and the specified flags.

Returns the address returned by sys_mmap.