pub fn map_memory<L>(
locked: &mut Locked<L>,
current_task: &CurrentTask,
address: UserAddress,
length: u64,
) -> UserAddresswhere
L: LockEqualOrBefore<FileOpsCore>,Expand description
Maps length at address with PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE.
Returns the address returned by sys_mmap.