Home
last modified time | relevance | path

Searched refs:os_ref_get_count_raw (Results 1 – 25 of 25) sorted by relevance

/xnu-11215/tests/
H A Dos_refcnt.c149 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 1, "refcount correctly initialized");
153 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 3, "retain increased count");
156 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 2, "release decreased count");
160 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 1, "release_live decreased count");
163 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 0, "released");
171 T_QUIET; T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 0, "release");
202 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 3, "retain increased count");
205 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 2, "release decreased count");
210 T_ASSERT_EQ_UINT(os_ref_get_count_raw(&rc), 0, "released");
418 T_ASSERT_EQ_INT(0, os_ref_get_count_raw(&rca), NULL);
/xnu-11215/osfmk/vm/
H A Dvm_shared_region_pager.c533 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 1); /* pager is alive */ in shared_region_pager_data_request()
914 assert(os_ref_get_count_raw(&pager->srp_ref_count) == 1); in shared_region_pager_terminate_internal()
1063 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 0); /* pager is alive */ in shared_region_pager_map()
1144 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 0); in shared_region_pager_lookup()
1378 if (os_ref_get_count_raw(&pager->srp_ref_count) == 2 && in shared_region_pager_trim()
1413 assert(os_ref_get_count_raw(&pager->srp_ref_count) == 2); in shared_region_pager_trim()
H A Dvm_object.c634 if (os_ref_get_count_raw(&object->ref_count) == 1) { in vm_object_deallocate()
650 if (os_ref_get_count_raw(&object->ref_count) == 2 && in vm_object_deallocate()
732 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
761 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
776 if ((os_ref_get_count_raw(&object->ref_count) > 1) || in vm_object_deallocate()
782 if (os_ref_get_count_raw(&object->ref_count) == 1 && in vm_object_deallocate()
1274 if (os_ref_get_count_raw(&object->ref_count) != 1) { in vm_object_terminate()
1521 assert(os_ref_get_count_raw(&object->ref_count) == 0); in vm_object_reap()
1977 os_ref_get_count_raw(&object->ref_count) > 2 && in vm_object_destroy()
1986 int, os_ref_get_count_raw(&object->ref_count), in vm_object_destroy()
[all …]
H A Dvm_swapfile_pager.c305 assert(os_ref_get_count_raw(&pager->swp_pgr_hdr_ref) > 1); /* pager is alive and mapped */ in swapfile_pager_data_request()
614 assert(os_ref_get_count_raw(&pager->swp_pgr_hdr_ref) > 0); /* pager is alive */ in swapfile_pager_map()
673 assert(os_ref_get_count_raw(&pager->swp_pgr_hdr_ref) > 0); in swapfile_pager_lookup()
H A Dvm_tests.c467 assert(os_ref_get_count_raw(&anon_object->ref_count) == 1); in vm_test_device_pager_transpose()
469 assert(os_ref_get_count_raw(&device_object->ref_count) == 2); in vm_test_device_pager_transpose()
484 assert(os_ref_get_count_raw(&anon_object->ref_count) == 2); in vm_test_device_pager_transpose()
490 assert(os_ref_get_count_raw(&device_object->ref_count) == 1); in vm_test_device_pager_transpose()
943 assert(os_ref_get_count_raw(&map4k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
947 assert(os_ref_get_count_raw(&map16k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
954 assert(os_ref_get_count_raw(&obj1->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
955 assert(os_ref_get_count_raw(&obj2->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
956 assert(os_ref_get_count_raw(&obj3->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
957 assert(os_ref_get_count_raw(&obj4->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
H A Dvm_apple_protect.c366 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 1); /* pager is alive and mapped */ in apple_protect_pager_data_request()
921 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); /* pager is alive */ in apple_protect_pager_map()
1007 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); in apple_protect_pager_lookup()
1394 os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) == 2 && in apple_protect_pager_trim()
H A Dvm_dyld_pager.c892 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 1); /* pager is alive */ in dyld_pager_data_request()
1184 assert(os_ref_get_count_raw(&pager->dyld_ref_count) == 1); in dyld_pager_terminate_internal()
1298 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 0); /* pager is alive */ in dyld_pager_map()
1366 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 0); in dyld_pager_lookup()
H A Ddevice_vm.c110 return os_ref_get_count_raw(&device_object->dev_pgr_hdr_ref); in device_pager_get_refcount()
H A Dvm_map.c1713 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in vm_map_adjust_offsets()
6928 assertf(os_ref_get_count_raw(&object->ref_count) == 1, in vm_map_wire_nested()
6930 object, os_ref_get_count_raw(&object->ref_count)); in vm_map_wire_nested()
7678 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
7716 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
8709 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
8729 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
16922 if (((os_ref_get_count_raw(&object->ref_count) == 1) || in vm_map_reusable_pages()
16936 if (os_ref_get_count_raw(&object->ref_count) != 1) { in vm_map_reusable_pages()
20887 if (os_ref_get_count_raw(&object->ref_count) != 1) { in vm_map_msync()
[all …]
H A Dvm_fault.c1168 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1170 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1468 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1620 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1655 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
2464 (os_ref_get_count_raw(&copy_object->ref_count) == 1)) { in vm_fault_page()
5184 if (os_ref_get_count_raw(&object->ref_count) > 1 && in vm_fault_internal()
H A Dvm_pageout.c533 assert(os_ref_get_count_raw(&object->ref_count) == 0); in vm_pageout_object_terminate()
6909 os_ref_get_count_raw(&local_object->ref_count) > 1))) {
H A Dvm_kern.c1131 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in kmem_suballoc()
H A Dvm_resident.c5012 os_ref_get_count_raw(&m_object->ref_count) == 1) { in vm_page_deactivate_internal()
/xnu-11215/libkern/os/
H A Drefcnt.h315 static os_ref_count_t os_ref_get_count_raw(os_ref_atomic_t *rc);
H A Drefcnt_internal.h308 os_ref_get_count_raw(os_ref_atomic_t *rc) in os_ref_get_count_raw() function
/xnu-11215/bsd/kern/
H A Duipc_usrreq.c2579 if (os_ref_get_count_raw(&fg->fg_count) == 0) { in unp_gc()
2605 if (os_ref_get_count_raw(&fg->fg_count) == in unp_gc()
2708 if (os_ref_get_count_raw(&fg->fg_count) == 0) { in unp_gc()
2722 if (os_ref_get_count_raw(&fg->fg_count) == fg->fg_msgcount) { in unp_gc()
H A Dsys_pipe.c1763 if (os_ref_get_count_raw(&fp->fp_glob->fg_count) == 1) { in pipe_drain()
H A Dproc_info.c2595 if (os_ref_get_count_raw(&fp->fp_glob->fg_count) > 1) { in fill_fileinfo()
H A Dkern_descrip.c2988 } else if (1 != os_ref_get_count_raw(&fg->fg_count)) { in sys_fcntl_nocancel()
H A Dkern_event.c3868 uint32_t ref = os_ref_get_count_raw(&kqwl->kqwl_retains); in kqworkloops_dealloc()
/xnu-11215/osfmk/ipc/
H A Dipc_voucher.c446 assert(os_ref_get_count_raw(&voucher->iv_refs) > 0); in convert_voucher_to_port()
2017 assert(os_ref_get_count_raw(&voucher->iv_refs) > 0); in mach_voucher_attr_control_get_values()
/xnu-11215/bsd/miscfs/devfs/
H A Ddevfs_tree.c689 os_ref_count_t rc = os_ref_get_count_raw(&dnp->dn_refcount); in devfs_dn_free()
/xnu-11215/osfmk/kern/
H A Ddebug.c1167 th_ref_count = os_ref_get_count_raw(&thread->ref_count); in panic_with_thread_context()
H A Dcoalition.c324 #define coal_ref_count(coal) os_ref_get_count_raw(&(coal)->ref_count)
H A Dthread.c787 assert(os_ref_get_count_raw(&thread->ref_count) == 0); in thread_deallocate_complete()