Lines Matching refs:result
150 kern_return_t result;
497 result = vm_map_enter_mem_object(user_map,
511 if ((result == KERN_NO_SPACE) && ((flags & MAP_FIXED) == 0) && user_addr && (num_retries++ == 0)) {
566 result = vm_map_enter_mem_object_control(user_map,
580 if ((result == KERN_NO_SPACE) && ((flags & MAP_FIXED) == 0) && user_addr && (num_retries++ == 0)) {
590 switch (result) {
702 kern_return_t result;
723 result = mach_vm_deallocate(current_map(), user_addr, user_size);
724 if (result != KERN_SUCCESS) {
736 kern_return_t result;
796 result = vm_map_sign(user_map,
799 switch (result) {
814 result = mach_vm_protect(user_map, user_addr, user_size,
816 switch (result) {
836 kern_return_t result;
847 result = mach_vm_inherit(user_map, addr, size,
849 switch (result) {
865 kern_return_t result;
911 result = mach_vm_behavior_set(user_map, start, size, new_behavior);
912 switch (result) {
1030 kern_return_t result;
1051 result = vm_map_wire(user_map, addr, addr+size, VM_PROT_NONE, TRUE);
1053 if (result == KERN_RESOURCE_SHORTAGE)
1055 else if (result != KERN_SUCCESS)
1067 kern_return_t result;
1077 result = mach_vm_wire(host_priv_self(), user_map, addr, size, VM_PROT_NONE);
1078 return (result == KERN_SUCCESS ? 0 : ENOMEM);
1124 kern_return_t result;
1226 result = vm_map_64(
1232 if (result != KERN_SUCCESS) {
1234 err = result;
1255 result = vm_map_copyin(my_map, (vm_map_address_t)map_addr,
1257 if (result != KERN_SUCCESS) {
1263 err = result;
1267 result = vm_map_copy_overwrite(my_map,
1269 if (result != KERN_SUCCESS) {
1272 err = result;