/linux/drivers/misc/lkdtm/ |
A D | refcount.c | 11 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 D | thread-maps-share.c | 46 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 D | thread-map.c | 42 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 D | skbuff.c | 27 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 D | mmap.c | 70 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 D | threadmap.c | 62 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
|
/linux/drivers/media/common/videobuf2/ |
A D | videobuf2-memops.c | 93 __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 D | debug.c | 54 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 D | refcount.h | 145 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 D | kref.h | 36 return refcount_read(&kref->refcount); in kref_read()
|
/linux/net/l2tp/ |
A D | l2tp_debugfs.c | 167 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 D | fscache.h | 223 __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 D | cryptd.c | 143 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 D | proc.c | 44 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt)); in c_show()
|
/linux/fs/lockd/ |
A D | mon.c | 195 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 D | inet_timewait_sock.c | 275 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 D | message.c | 53 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 D | ip_vs_conn.c | 480 (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 D | ip_vs_nq.c | 108 refcount_read(&least->refcnt), in ip_vs_nq_schedule()
|
A D | ip_vs_sed.c | 109 refcount_read(&least->refcnt), in ip_vs_sed_schedule()
|
A D | ip_vs_wlc.c | 81 refcount_read(&least->refcnt), in ip_vs_wlc_schedule()
|
A D | ip_vs_twos.c | 112 refcount_read(&choice1->refcnt), in ip_vs_twos_schedule()
|
/linux/tools/include/linux/ |
A D | refcount.h | 63 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
|
/linux/security/keys/ |
A D | proc.c | 235 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 D | refcount-vs-atomic.rst | 72 * atomic_read() --> refcount_read()
|