Home
last modified time | relevance | path

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

/xnu-11417.101.15/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-11417.101.15/osfmk/vm/
H A Dvm_shared_region_pager.c534 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.c635 if (os_ref_get_count_raw(&object->ref_count) == 1) { in vm_object_deallocate()
651 if (os_ref_get_count_raw(&object->ref_count) == 2 && in vm_object_deallocate()
658 } else if (os_ref_get_count_raw(&object->ref_count) == 2 && in vm_object_deallocate()
667 } else if (os_ref_get_count_raw(&object->ref_count) >= 2) { in vm_object_deallocate()
683 original_ref_count = os_ref_get_count_raw(&object->ref_count); in vm_object_deallocate()
733 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
740 if ((os_ref_get_count_raw(&object->ref_count) == 2) && (object->named)) { in vm_object_deallocate()
762 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
777 if ((os_ref_get_count_raw(&object->ref_count) > 1) || in vm_object_deallocate()
783 if (os_ref_get_count_raw(&object->ref_count) == 1 && in vm_object_deallocate()
[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.c471 assert(os_ref_get_count_raw(&anon_object->ref_count) == 1); in vm_test_device_pager_transpose()
473 assert(os_ref_get_count_raw(&device_object->ref_count) == 2); in vm_test_device_pager_transpose()
488 assert(os_ref_get_count_raw(&anon_object->ref_count) == 2); in vm_test_device_pager_transpose()
494 assert(os_ref_get_count_raw(&device_object->ref_count) == 1); in vm_test_device_pager_transpose()
947 assert(os_ref_get_count_raw(&map4k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
951 assert(os_ref_get_count_raw(&map16k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
958 assert(os_ref_get_count_raw(&obj1->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
959 assert(os_ref_get_count_raw(&obj2->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
960 assert(os_ref_get_count_raw(&obj3->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
961 assert(os_ref_get_count_raw(&obj4->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
H A Dvm_apple_protect.c367 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 1); /* pager is alive and mapped */ in apple_protect_pager_data_request()
928 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); /* pager is alive */ in apple_protect_pager_map()
1014 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); in apple_protect_pager_lookup()
1401 os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) == 2 && in apple_protect_pager_trim()
H A Dvm_dyld_pager.c893 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 1); /* pager is alive */ in dyld_pager_data_request()
1186 assert(os_ref_get_count_raw(&pager->dyld_ref_count) == 1); in dyld_pager_terminate_internal()
1300 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 0); /* pager is alive */ in dyld_pager_map()
1368 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.c1737 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in vm_map_adjust_offsets()
5248 if ((map->mapped_in_other_pmaps) && os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_clip_unnest()
6971 assertf(os_ref_get_count_raw(&object->ref_count) == 1, in vm_map_wire_nested()
6973 object, os_ref_get_count_raw(&object->ref_count)); in vm_map_wire_nested()
7732 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
7770 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
8121 if (map->terminated || os_ref_get_count_raw(&map->map_refcnt) == 0) { in vm_map_delete()
8784 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
8804 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
12531 assert(os_ref_get_count_raw(&new_object->ref_count) == 1); in vm_map_copyin_internal()
[all …]
H A Dvm_fault.c1178 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1180 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1485 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1637 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1672 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
2484 (os_ref_get_count_raw(&copy_object->ref_count) == 1)) { in vm_fault_page()
5260 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()
6858 os_ref_get_count_raw(&local_object->ref_count) > 1))) {
H A Dvm_kern.c1154 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in kmem_suballoc()
H A Dvm_resident.c5438 os_ref_get_count_raw(&m_object->ref_count) == 1) { in vm_page_deactivate_internal()
/xnu-11417.101.15/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.h328 os_ref_get_count_raw(os_ref_atomic_t *rc) in os_ref_get_count_raw() function
/xnu-11417.101.15/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.c2601 if (os_ref_get_count_raw(&fp->fp_glob->fg_count) > 1) { in fill_fileinfo()
H A Dkern_descrip.c2984 } 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-11417.101.15/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-11417.101.15/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-11417.101.15/osfmk/kern/
H A Ddebug.c1200 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.c788 assert(os_ref_get_count_raw(&thread->ref_count) == 0); in thread_deallocate_complete()