user/lib/libsystem/src/sys/vm.c
/**
 * Maps a virtual memory region in another task.
 *
 * @param taskHandle Task to map the object into; passing 0 here is a library use error
 */
Maps a virtual memory region in another task.
@param taskHandle Task to map the object into; passing 0 here is a library use error
Maps a virtual memory region in another task . @param taskHandle Task to map the object into ; passing 0 here is a library use error
int MapVirtualRegionRemote(const uintptr_t taskHandle, const uintptr_t regionHandle,
        const uintptr_t base, const size_t length, const uintptr_t inFlags) {
    if(!taskHandle || !regionHandle || !base) return -1;
    const uintptr_t flags = BuildSyscallMapFlags(inFlags, true);
    return __do_syscall5(regionHandle, taskHandle, base, length, flags, SYS_VM_MAP);
}
int MapVirtualRegionRemote ( const uintptr_t taskHandle , const uintptr_t regionHandle , const uintptr_t base , const size_t length , const uintptr_t inFlags ) { if ( ! taskHandle || ! regionHandle || ! base ) return -1 ; const uintptr_t flags = BuildSyscallMapFlags ( inFlags , true ) ; return __do_syscall5 ( regionHandle , taskHandle , base , length , flags , SYS_VM_MAP ) ; }
Maps a virtual memory region in another task.
Maps a virtual memory region in another task .
// validate args // perform the syscall