map_object_anywhere

Function map_object_anywhere 

Source
pub fn map_object_anywhere<L, T>(
    locked: &mut Locked<L>,
    current_task: &CurrentTask,
    object: &T,
) -> UserAddress
Expand description

Maps a region of memory large enough for the object with PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE and writes the object to it, returning the mapped address.

Useful for syscall in-pointer parameters.