user/lib/libsystem/src/sys/vm.c
/**
 * Maps a virtual memory region in the current task.
 */
Maps a virtual memory region in the current task.
Maps a virtual memory region in the current task .
int MapVirtualRegion(const uintptr_t regionHandle, const uintptr_t base, const size_t length,
        const uintptr_t inFlags) {
    if(!regionHandle || !base) return -1;
    const uintptr_t flags = BuildSyscallMapFlags(inFlags, false);
    return __do_syscall5(regionHandle, 0, base, length, flags, SYS_VM_MAP);
}
int MapVirtualRegion ( const uintptr_t regionHandle , const uintptr_t base , const size_t length , const uintptr_t inFlags ) { if ( ! regionHandle || ! base ) return -1 ; const uintptr_t flags = BuildSyscallMapFlags ( inFlags , false ) ; return __do_syscall5 ( regionHandle , 0 , base , length , flags , SYS_VM_MAP ) ; }
Maps a virtual memory region in the current task.
Maps a virtual memory region in the current task .
// validate args // perform the syscall