Searched refs:os_ref_get_count (Results 1 – 17 of 17) sorted by relevance
| /xnu-8020.140.41/tests/ |
| H A D | os_refcnt.c | 38 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 1, "refcount correctly initialized"); 42 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 3, "retain increased count"); 45 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 2, "release decreased count"); 49 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 1, "release_live decreased count"); 52 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "released"); 60 T_QUIET; T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "release"); 103 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 3, "retain increased count"); 106 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 2, "release decreased count"); 111 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "released");
|
| /xnu-8020.140.41/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_stats.c | 98 VERIFY(os_ref_get_count(&fs->fs_refcnt) == 0); in flow_stats_free()
|
| H A D | flow_entry.c | 477 return os_ref_get_count(&fe->fe_refcnt); in flow_entry_refcnt() 541 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_init() 579 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_update()
|
| /xnu-8020.140.41/bsd/skywalk/namespace/ |
| H A D | protons.c | 108 ASSERT(os_ref_get_count(&pt->pt_refcnt) == 0); in protons_token_free() 146 return os_ref_get_count(&pt->pt_refcnt) - 1; in protons_token_get_use_count()
|
| /xnu-8020.140.41/libkern/os/ |
| H A D | refcnt.h | 156 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc);
|
| H A D | refcnt_internal.h | 196 os_ref_get_count(struct os_refcnt *rc) in os_ref_get_count() function
|
| /xnu-8020.140.41/osfmk/kperf/ |
| H A D | kperf.c | 322 assert(os_ref_get_count(&task->ref_count) > 1); in kperf_port_to_pid()
|
| /xnu-8020.140.41/osfmk/ipc/ |
| H A D | ipc_voucher.c | 285 assert(os_ref_get_count(&iv->iv_refs) == 0); in iv_dealloc() 476 assert(os_ref_get_count(&voucher->iv_refs) > 0); in convert_voucher_to_port() 564 if (os_ref_get_count(&ivac->ivac_refs) > 0) { in ivac_dealloc() 1565 if ((os_ref_get_count(&iv->iv_refs) > 0) && (iv->iv_sum == sum)) { in iv_dedup() 2357 assert(os_ref_get_count(&voucher->iv_refs) > 0); in mach_voucher_attr_control_get_values()
|
| /xnu-8020.140.41/osfmk/kern/ |
| H A D | work_interval.c | 459 assert(os_ref_get_count(&work_interval->wi_ref_count) == 0); in work_interval_deallocate_queue_invoke()
|
| /xnu-8020.140.41/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable_test.c | 136 return os_ref_get_count(&co->co_refcnt); in cht_obj_refcnt()
|
| /xnu-8020.140.41/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif.c | 2933 ASSERT(os_ref_get_count(&n->nif_refcnt) == 0); 2946 os_ref_get_count(&n->nif_refcnt)); 2958 ASSERT(os_ref_get_count(&n->nif_refcnt) >= 1); 2961 os_ref_get_count(&n->nif_refcnt));
|
| /xnu-8020.140.41/osfmk/i386/ |
| H A D | pmap_x86_common.c | 352 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_find_pa() 434 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_get_prot()
|
| /xnu-8020.140.41/bsd/skywalk/ |
| H A D | os_stats_private.h | 1363 return os_ref_get_count(&fs->fs_refcnt); in flow_stats_refcnt()
|
| /xnu-8020.140.41/bsd/nfs/ |
| H A D | nfs_bio.c | 278 if (os_ref_get_count(&fbp->nb_refs) > 1) { in nfs_buf_freeup() 305 if (os_ref_get_count(&fbp->nb_refs) > 1) { in nfs_buf_freeup()
|
| H A D | nfs4_vnops.c | 2085 if (os_ref_get_count(&noop->noo_refcnt) < 1) { in nfs_open_owner_rele() 3357 if (os_ref_get_count(&nlop->nlo_refcnt)) { in nfs_lock_owner_find() 3447 if (os_ref_get_count(&nlop->nlo_refcnt) < 1) { in nfs_lock_owner_rele()
|
| /xnu-8020.140.41/bsd/kern/ |
| H A D | kern_descrip.c | 1360 os_ref_get_count(&fp->fp_iocount) <= 1 || in fp_get_noref_locked_with_iocount() 1565 while (os_ref_get_count(&fp->fp_iocount) > 1) { in fileproc_drain()
|
| /xnu-8020.140.41/bsd/skywalk/mem/ |
| H A D | skmem_test.c | 182 return os_ref_get_count(&pp_ctx->skmem_pp_ctx_refcnt); in skmem_pp_ctx_refcnt()
|