Home
last modified time | relevance | path

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

12345678910

/linux/drivers/misc/lkdtm/
A Drefcount.c11 switch (refcount_read(ref)) { in overflow_check()
19 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check()
86 switch (refcount_read(ref)) { in check_zero()
97 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero()
126 if (refcount_read(ref) == start) { in check_negative()
132 switch (refcount_read(ref)) { in check_negative()
187 switch (refcount_read(ref)) { in check_from_zero()
199 refcount_read(ref)); in check_from_zero()
213 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_INC_ZERO()
238 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_ADD_ZERO()
[all …]
/linux/tools/perf/tests/
A Dthread-maps-share.c46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share()
74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 2); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 2); in test__thread_maps_share()
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 1); in test__thread_maps_share()
92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 1); in test__thread_maps_share()
A Dthread-map.c42 refcount_read(&map->refcnt) == 1); in test__thread_map()
57 refcount_read(&map->refcnt) == 1); in test__thread_map()
84 refcount_read(&threads->refcnt) == 1); in process_event()
/linux/net/rxrpc/
A Dskbuff.c27 trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, in rxrpc_new_skb()
39 trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, in rxrpc_see_skb()
51 trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, in rxrpc_get_skb()
76 trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, in rxrpc_free_skb()
92 refcount_read(&skb->users), n, in rxrpc_purge_queue()
/linux/tools/lib/perf/
A Dmmap.c70 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put()
101 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume()
179 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init()
196 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done()
264 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
A Dthreadmap.c62 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
/linux/drivers/media/common/videobuf2/
A Dvideobuf2-memops.c93 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_open()
111 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_close()
/linux/kernel/cgroup/
A Ddebug.c54 refcnt = refcount_read(&cset->refcount); in current_css_set_read()
82 count = refcount_read(&task_css_set(current)->refcount); in current_css_set_refcount_read()
126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read()
/linux/include/linux/
A Drefcount.h145 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
152 int old = refcount_read(r); in __refcount_add_not_zero()
A Dkref.h36 return refcount_read(&kref->refcount); in kref_read()
/linux/net/l2tp/
A Dl2tp_debugfs.c167 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
168 refcount_read(&tunnel->ref_count)); in l2tp_dfs_seq_tunnel_show()
190 seq_printf(m, " refcnt %d\n", refcount_read(&session->ref_count)); in l2tp_dfs_seq_session_show()
/linux/include/trace/events/
A Dfscache.h223 __entry->p_ref = refcount_read(&cookie->parent->ref);
253 __entry->ref = refcount_read(&cookie->ref);
281 __entry->ref = refcount_read(&cookie->ref);
307 __entry->ref = refcount_read(&cookie->ref);
/linux/crypto/
A Dcryptd.c143 if (!refcount_read(refcnt)) in cryptd_enqueue_request()
245 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete()
482 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete()
736 refcnt = refcount_read(&ctx->refcnt); in cryptd_aead_crypt()
943 return refcount_read(&ctx->refcnt) - 1; in cryptd_skcipher_queued()
1000 return refcount_read(&ctx->refcnt) - 1; in cryptd_ahash_queued()
1050 return refcount_read(&ctx->refcnt) - 1; in cryptd_aead_queued()
A Dproc.c44 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt)); in c_show()
/linux/fs/lockd/
A Dmon.c195 if (refcount_read(&nsm->sm_count) == 1 in nsm_unmonitor()
347 refcount_read(&cached->sm_count)); in nsm_get_handle()
397 refcount_read(&cached->sm_count)); in nsm_reboot_lookup()
/linux/net/ipv4/
A Dinet_timewait_sock.c275 refcount_read(&twsk_net(tw)->ns.count)) in inet_twsk_purge()
282 refcount_read(&twsk_net(tw)->ns.count))) { in inet_twsk_purge()
/linux/net/rds/
A Dmessage.c53 rdsdebug("addref rm %p ref %d\n", rm, refcount_read(&rm->m_refcount)); in rds_message_addref()
175 rdsdebug("put rm %p ref %d\n", rm, refcount_read(&rm->m_refcount)); in rds_message_put()
176 WARN(!refcount_read(&rm->m_refcount), "danger refcount zero on %p\n", rm); in rds_message_put()
/linux/net/netfilter/ipvs/
A Dip_vs_conn.c480 (refcount_read(&cp->refcnt) == 1) && in ip_vs_conn_put()
622 cp->flags, refcount_read(&cp->refcnt), in ip_vs_bind_dest()
623 refcount_read(&dest->refcnt)); in ip_vs_bind_dest()
719 cp->flags, refcount_read(&cp->refcnt), in ip_vs_unbind_dest()
720 refcount_read(&dest->refcnt)); in ip_vs_unbind_dest()
907 refcount_read(&cp->refcnt), in ip_vs_conn_expire()
A Dip_vs_nq.c108 refcount_read(&least->refcnt), in ip_vs_nq_schedule()
A Dip_vs_sed.c109 refcount_read(&least->refcnt), in ip_vs_sed_schedule()
A Dip_vs_wlc.c81 refcount_read(&least->refcnt), in ip_vs_wlc_schedule()
A Dip_vs_twos.c112 refcount_read(&choice1->refcnt), in ip_vs_twos_schedule()
/linux/tools/include/linux/
A Drefcount.h63 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
/linux/security/keys/
A Dproc.c235 refcount_read(&key->usage), in proc_keys_show()
314 refcount_read(&user->usage), in proc_key_users_show()
/linux/Documentation/translations/zh_CN/core-api/
A Drefcount-vs-atomic.rst72 * atomic_read() --> refcount_read()

Completed in 57 milliseconds

12345678910