Lines Matching defs:retval
720 kern_return_t retval;
742 retval = kmem_alloc_kobject(kernel_map, (vm_offset_t*)&allocations_ptr, z_alloc_size);
743 if (retval != KERN_SUCCESS) {
747 retval = kmem_alloc_kobject(kernel_map, (vm_offset_t*)&traces_ptr, z_trace_size);
748 if (retval != KERN_SUCCESS) {
795 return retval;
1540 kern_return_t retval;
1544 retval = kmem_suballoc(kernel_map, &zone_min, max_zonemap_size,
1548 if (retval != KERN_SUCCESS)
1665 kern_return_t retval;
1786 retval = kernel_memory_allocate(zone_map, &space, alloc_size, 0, zflags);
1787 if (retval == KERN_SUCCESS) {
1815 } else if (retval != KERN_RESOURCE_SHORTAGE) {
1831 * 'zone_map exhausted' only if we get retval 3 (KERN_NO_SPACE).
1833 panic("zalloc: \"%s\" (%d elements) retry fail %d, kfree_nop_count: %d", zone->zone_name, zone->count, retval, (int)kfree_nop_count);
1847 retval == KERN_RESOURCE_SHORTAGE) {