Lines Matching defs:kr
97 kern_return_t kr = mach_vm_allocate(mach_task_self(), &address, round_page(size), VM_FLAGS_ANYWHERE);
98 if (kr != KERN_SUCCESS)
104 kr = mach_make_memory_entry_64(mach_task_self(), &memoryObjectSize, address, VM_PROT_DEFAULT, &port, MACH_PORT_NULL);
106 if (kr != KERN_SUCCESS) {
142 kern_return_t kr = mach_vm_map(mach_task_self(), &mappedAddress, handle.m_size, 0, VM_FLAGS_ANYWHERE, handle.m_port, 0, false, vmProtection, vmProtection, VM_INHERIT_NONE);
143 if (kr != KERN_SUCCESS)
157 kern_return_t kr = mach_vm_deallocate(mach_task_self(), toVMAddress(m_data), round_page(m_size));
158 ASSERT_UNUSED(kr, kr == KERN_SUCCESS);
162 kern_return_t kr = mach_port_deallocate(mach_task_self(), m_port);
163 ASSERT_UNUSED(kr, kr == KERN_SUCCESS);
184 kern_return_t kr = mach_make_memory_entry_64(mach_task_self(), &size, address, machProtection(protection), &port, MACH_PORT_NULL);
185 if (kr != KERN_SUCCESS)