Home
last modified time | relevance | path

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

/xnu-8792.41.9/tests/
H A Dos_refcnt.c38 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-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_stats.c98 VERIFY(os_ref_get_count(&fs->fs_refcnt) == 0); in flow_stats_free()
H A Dflow_entry.c760 return os_ref_get_count(&fe->fe_refcnt); in flow_entry_refcnt()
834 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_init()
872 ASSERT(os_ref_get_count(&fe->fe_stats->fs_refcnt) >= 1); in fe_stats_update()
/xnu-8792.41.9/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-8792.41.9/libkern/os/
H A Drefcnt.h156 static os_ref_count_t os_ref_get_count(struct os_refcnt *rc);
H A Drefcnt_internal.h196 os_ref_get_count(struct os_refcnt *rc) in os_ref_get_count() function
/xnu-8792.41.9/osfmk/kperf/
H A Dkperf.c322 assert(os_ref_get_count(&task->ref_count) > 1); in kperf_port_to_pid()
/xnu-8792.41.9/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c1095 ASSERT(os_ref_get_count(&ntr->ntr_refcnt) == 0); in inet_traffic_rule_destroy()
1165 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in retain_traffic_rule()
1177 os_ref_count_t count = os_ref_get_count(&ntr->ntr_refcnt); in release_traffic_rule()
/xnu-8792.41.9/osfmk/ipc/
H A Dipc_voucher.c243 assert(os_ref_get_count(&iv->iv_refs) == 0); in iv_dealloc()
430 assert(os_ref_get_count(&voucher->iv_refs) > 0); in convert_voucher_to_port()
1339 if ((os_ref_get_count(&iv->iv_refs) > 0) && (iv->iv_sum == sum)) { in iv_dedup()
2119 assert(os_ref_get_count(&voucher->iv_refs) > 0); in mach_voucher_attr_control_get_values()
/xnu-8792.41.9/bsd/skywalk/lib/
H A Dcuckoo_hashtable_test.c136 return os_ref_get_count(&co->co_refcnt); in cht_obj_refcnt()
/xnu-8792.41.9/osfmk/kern/
H A Dwork_interval.c480 assert(os_ref_get_count(&work_interval->wi_ref_count) == 0); in work_interval_deallocate_queue_invoke()
/xnu-8792.41.9/osfmk/i386/
H A Dpmap_x86_common.c352 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-8792.41.9/bsd/skywalk/nexus/netif/
H A Dnx_netif.c3250 ASSERT(os_ref_get_count(&n->nif_refcnt) == 0);
3263 os_ref_get_count(&n->nif_refcnt));
3275 ASSERT(os_ref_get_count(&n->nif_refcnt) >= 1);
3278 os_ref_get_count(&n->nif_refcnt));
/xnu-8792.41.9/bsd/skywalk/
H A Dos_stats_private.h1429 return os_ref_get_count(&fs->fs_refcnt); in flow_stats_refcnt()
/xnu-8792.41.9/bsd/kern/
H A Dkern_descrip.c1437 os_ref_get_count(&fp->fp_iocount) <= 1 || in fp_get_noref_locked_with_iocount()
1642 while (os_ref_get_count(&fp->fp_iocount) > 1) { in fileproc_drain()
/xnu-8792.41.9/bsd/skywalk/mem/
H A Dskmem_test.c188 return os_ref_get_count(&pp_ctx->skmem_pp_ctx_refcnt); in skmem_pp_ctx_refcnt()