Searched refs:os_ref_get_count (Results 1 – 16 of 16) sorted by relevance
| /xnu-11417.101.15/tests/ |
| H A D | os_refcnt.c | 81 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-11417.101.15/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_stats.c | 102 VERIFY(os_ref_get_count(&fs->fs_refcnt) == 0); in flow_stats_free()
|
| H A D | flow_entry.c | 773 return os_ref_get_count(&fe->fe_refcnt); in flow_entry_refcnt() 848 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_init() 887 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_update()
|
| /xnu-11417.101.15/bsd/skywalk/namespace/ |
| H A D | protons.c | 107 ASSERT(os_ref_get_count(&pt->pt_refcnt) == 0); in protons_token_free() 145 return os_ref_get_count(&pt->pt_refcnt) - 1; in protons_token_get_use_count()
|
| /xnu-11417.101.15/osfmk/kperf/ |
| H A D | kperf.c | 322 assert(os_ref_get_count(&task->ref_count) > 1); in kperf_port_to_pid()
|
| /xnu-11417.101.15/libkern/os/ |
| H A D | refcnt.h | 157 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc);
|
| H A D | refcnt_internal.h | 221 os_ref_get_count(struct os_refcnt *rc) in os_ref_get_count() function
|
| /xnu-11417.101.15/osfmk/kern/ |
| H A D | epoch_sync.c | 260 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 D | work_interval.c | 511 assert(os_ref_get_count(&work_interval->wi_ref_count) == 0); in work_interval_deallocate_queue_invoke()
|
| /xnu-11417.101.15/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 1143 ASSERT(os_ref_get_count(&ntr->ntr_refcnt) == 0); in inet_traffic_rule_destroy() 1211 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in retain_traffic_rule() 1223 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in release_traffic_rule()
|
| /xnu-11417.101.15/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable_test.c | 136 return os_ref_get_count(&co->co_refcnt); in cht_obj_refcnt()
|
| /xnu-11417.101.15/osfmk/i386/ |
| H A D | pmap_x86_common.c | 353 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_find_pa() 435 if (os_ref_get_count(&pmap->ref_count) == 0) { in pmap_get_prot()
|
| /xnu-11417.101.15/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif.c | 3299 ASSERT(os_ref_get_count(&n->nif_refcnt) == 0); 3312 os_ref_get_count(&n->nif_refcnt)); 3324 ASSERT(os_ref_get_count(&n->nif_refcnt) >= 1); 3327 os_ref_get_count(&n->nif_refcnt));
|
| /xnu-11417.101.15/bsd/skywalk/ |
| H A D | os_stats_private.h | 1450 return os_ref_get_count(&fs->fs_refcnt); in flow_stats_refcnt()
|
| /xnu-11417.101.15/bsd/kern/ |
| H A D | kern_descrip.c | 1440 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-11417.101.15/bsd/skywalk/mem/ |
| H A D | skmem_test.c | 188 return os_ref_get_count(&pp_ctx->skmem_pp_ctx_refcnt); in skmem_pp_ctx_refcnt()
|