Home
last modified time | relevance | path

Searched refs:os_ref_get_count (Results 1 – 21 of 21) sorted by relevance

/xnu-12377.61.12/tests/
H A Dos_refcnt.c81 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 1, "refcount correctly initialized");
85 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 3, "retain increased count");
88 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 2, "release decreased count");
92 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 1, "release_live decreased count");
95 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "released");
103 T_QUIET; T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "release");
183 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 3, "retain increased count");
186 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 2, "release decreased count");
191 T_ASSERT_EQ_UINT(os_ref_get_count(&rc), 0, "released");
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_stats.c102 VERIFY(os_ref_get_count(&fs->fs_refcnt) == 0); in flow_stats_free()
H A Dflow_entry.c929 return os_ref_get_count(&fe->fe_refcnt); in flow_entry_refcnt()
996 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_init()
1035 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_update()
/xnu-12377.61.12/bsd/skywalk/namespace/
H A Dprotons.c108 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-12377.61.12/osfmk/kperf/
H A Dkperf.c322 assert(os_ref_get_count(&task->ref_count) > 1); in kperf_port_to_pid()
/xnu-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c254 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in retain_traffic_rule()
266 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in release_traffic_rule()
H A Dnexus_traffic_rule_eth.c592 ASSERT(os_ref_get_count(&ntr->ntr_refcnt) == 0); in eth_traffic_rule_destroy()
H A Dnexus_traffic_rule_inet.c855 ASSERT(os_ref_get_count(&ntr->ntr_refcnt) == 0); in inet_traffic_rule_destroy()
/xnu-12377.61.12/libkern/os/
H A Drefcnt.h157 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc);
H A Drefcnt_internal.h221 os_ref_get_count(struct os_refcnt *rc) in os_ref_get_count() function
/xnu-12377.61.12/osfmk/kern/
H A Depoch_sync.c260 assert3u(os_ref_get_count(&sync->es_refcnt), ==, 0); in esync_free()
280 cnt = os_ref_get_count(&sync->es_refcnt); in esync_put()
H A Dwork_interval.c510 assert(os_ref_get_count(&work_interval->wi_ref_count) == 0); in work_interval_deallocate_queue_invoke()
/xnu-12377.61.12/bsd/skywalk/nexus/netif/
H A Dnx_netif.c2477 SK_KVA(ifp), ifp->if_xname, os_ref_get_count(&ifp->if_refio)); in nx_netif_attach()
2495 SK_KVA(ifp), ifp->if_xname, os_ref_get_count(&ifp->if_refio)); in nx_netif_attach()
3367 ASSERT(os_ref_get_count(&n->nif_refcnt) == 0);
3380 os_ref_get_count(&n->nif_refcnt));
3392 ASSERT(os_ref_get_count(&n->nif_refcnt) >= 1);
3395 os_ref_get_count(&n->nif_refcnt));
H A Dnx_netif_compat.c1769 SK_KVA(ifp), ifp->if_xname, os_ref_get_count(&ifp->if_refio)); in nx_netif_compat_attach()
1787 ifp->if_xname, os_ref_get_count(&ifp->if_refio)); in nx_netif_compat_attach()
/xnu-12377.61.12/bsd/net/aop/
H A Dkpi_aop.c360 while (os_ref_get_count(&prov->kaop_refcnt) > 0) { in net_aop_provider_cleanup()
/xnu-12377.61.12/bsd/skywalk/lib/
H A Dcuckoo_hashtable_test.c136 return os_ref_get_count(&co->co_refcnt); in cht_obj_refcnt()
/xnu-12377.61.12/osfmk/i386/
H A Dpmap_x86_common.c370 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_find_pa()
452 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_get_prot()
/xnu-12377.61.12/bsd/skywalk/
H A Dos_stats_private.h1465 return os_ref_get_count(&fs->fs_refcnt); in flow_stats_refcnt()
/xnu-12377.61.12/bsd/kern/
H A Dkern_descrip.c1440 os_ref_get_count(&fp->fp_iocount) <= 1 || in fp_get_noref_locked_with_iocount()
1645 while (os_ref_get_count(&fp->fp_iocount) > 1) { in fileproc_drain()
/xnu-12377.61.12/bsd/skywalk/mem/
H A Dskmem_test.c188 return os_ref_get_count(&pp_ctx->skmem_pp_ctx_refcnt); in skmem_pp_ctx_refcnt()
/xnu-12377.61.12/bsd/net/
H A Ddlil.c5645 while (os_ref_get_count(&ifp->if_refio) > 0) { in ifnet_detach_final()