[][src]Function sunrise_kernel::syscalls::map_process_memory

pub fn map_process_memory(
    dst_addr: usize,
    proc_hnd: u32,
    src_addr: usize,
    size: usize
) -> Result<(), UserspaceError>

Maps the given src memory range from a remote process into the current process as RW-. This is used by the Loader to load binaries into the memory region allocated by the kernel in create_process().

The src region should have the MAP_PROCESS state, which is only available on CodeStatic/CodeMutable and ModuleCodeStatic/ModuleCodeMutable.

Errors