Home
last modified time | relevance | path

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

/xnu-12377.41.6/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-12377.41.6/osfmk/vm/
H A Dvm_shared_region_pager.c531 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 1); /* pager is alive */ in shared_region_pager_data_request()
911 assert(os_ref_get_count_raw(&pager->srp_ref_count) == 1); in shared_region_pager_terminate_internal()
1060 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 0); /* pager is alive */ in shared_region_pager_map()
1141 assert(os_ref_get_count_raw(&pager->srp_ref_count) > 0); in shared_region_pager_lookup()
1376 if (os_ref_get_count_raw(&pager->srp_ref_count) == 2 && in shared_region_pager_trim()
1411 assert(os_ref_get_count_raw(&pager->srp_ref_count) == 2); in shared_region_pager_trim()
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_object.c689 if (os_ref_get_count_raw(&object->ref_count) == 1) { in vm_object_deallocate()
705 if (os_ref_get_count_raw(&object->ref_count) == 2 && in vm_object_deallocate()
712 } else if (os_ref_get_count_raw(&object->ref_count) == 2 && in vm_object_deallocate()
721 } else if (os_ref_get_count_raw(&object->ref_count) >= 2) { in vm_object_deallocate()
737 original_ref_count = os_ref_get_count_raw(&object->ref_count); in vm_object_deallocate()
787 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
794 if ((os_ref_get_count_raw(&object->ref_count) == 2) && (object->named)) { in vm_object_deallocate()
837 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_object_deallocate()
852 if ((os_ref_get_count_raw(&object->ref_count) > 1) || in vm_object_deallocate()
858 if (os_ref_get_count_raw(&object->ref_count) == 1 && in vm_object_deallocate()
[all …]
H A Dvm_apple_protect.c364 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 1); /* pager is alive and mapped */ in apple_protect_pager_data_request()
925 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); /* pager is alive */ in apple_protect_pager_map()
1011 assert(os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) > 0); in apple_protect_pager_lookup()
1399 os_ref_get_count_raw(&pager->ap_pgr_hdr_ref) == 2 && in apple_protect_pager_trim()
H A Dvm_tests.c480 assert(os_ref_get_count_raw(&anon_object->ref_count) == 1); in vm_test_device_pager_transpose()
482 assert(os_ref_get_count_raw(&device_object->ref_count) == 2); in vm_test_device_pager_transpose()
497 assert(os_ref_get_count_raw(&anon_object->ref_count) == 2); in vm_test_device_pager_transpose()
503 assert(os_ref_get_count_raw(&device_object->ref_count) == 1); in vm_test_device_pager_transpose()
956 assert(os_ref_get_count_raw(&map4k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
960 assert(os_ref_get_count_raw(&map16k->map_refcnt) == 1); in vm_test_map_copy_adjust_to_target()
967 assert(os_ref_get_count_raw(&obj1->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
968 assert(os_ref_get_count_raw(&obj2->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
969 assert(os_ref_get_count_raw(&obj3->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
970 assert(os_ref_get_count_raw(&obj4->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
H A Dvm_dyld_pager.c1000 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 1); /* pager is alive */ in dyld_pager_data_request()
1293 assert(os_ref_get_count_raw(&pager->dyld_ref_count) == 1); in dyld_pager_terminate_internal()
1407 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 0); /* pager is alive */ in dyld_pager_map()
1475 assert(os_ref_get_count_raw(&pager->dyld_ref_count) > 0); in dyld_pager_lookup()
H A Ddevice_vm.c108 return os_ref_get_count_raw(&device_object->dev_pgr_hdr_ref); in device_pager_get_refcount()
H A Dvm_map.c1870 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in vm_map_adjust_offsets()
5598 if ((map->mapped_in_other_pmaps) && os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_clip_unnest()
7358 assertf(os_ref_get_count_raw(&object->ref_count) == 1, in vm_map_wire_nested()
7360 object, os_ref_get_count_raw(&object->ref_count)); in vm_map_wire_nested()
8134 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
8173 os_ref_get_count_raw(&map->map_refcnt) != 0 && in vm_map_submap_pmap_clean()
8784 if (map->terminated || os_ref_get_count_raw(&map->map_refcnt) == 0) { in vm_map_delete()
9430 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
9450 os_ref_get_count_raw(&map->map_refcnt) != 0) { in vm_map_delete()
13646 assert(os_ref_get_count_raw(&new_object->ref_count) == 1); in vm_map_copyin_internal()
[all …]
H A Dvm_fault.c1226 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1228 …bject->shadow, object->alive, object->terminating, object->named, os_ref_get_count_raw(&object->re… in vm_fault_page()
1533 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1685 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
1720 assert(os_ref_get_count_raw(&object->ref_count) > 0); in vm_fault_page()
2542 (os_ref_get_count_raw(&copy_object->ref_count) == 1)) { in vm_fault_page()
5457 if (os_ref_get_count_raw(&object->ref_count) > 1 && in vm_fault_internal()
H A Dvm_pageout.c542 assert(os_ref_get_count_raw(&object->ref_count) == 0); in vm_pageout_object_terminate()
7274 os_ref_get_count_raw(&local_object->ref_count) > 1))) {
H A Dvm_kern.c1187 assert(os_ref_get_count_raw(&map->map_refcnt) == 2); in kmem_suballoc()
H A Dvm_resident.c6346 os_ref_get_count_raw(&m_object->ref_count) == 1) { in vm_page_deactivate_internal()
/xnu-12377.41.6/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-12377.41.6/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.c2641 if (os_ref_get_count_raw(&fp->fp_glob->fg_count) > 1) { in fill_fileinfo()
H A Dkern_descrip.c2997 } else if (1 != os_ref_get_count_raw(&fg->fg_count)) { in sys_fcntl_nocancel()
H A Dkern_event.c3869 uint32_t ref = os_ref_get_count_raw(&kqwl->kqwl_retains); in kqworkloops_dealloc()
/xnu-12377.41.6/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-12377.41.6/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-12377.41.6/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.c792 assert(os_ref_get_count_raw(&thread->ref_count) == 0); in thread_deallocate_complete()