Home
last modified time | relevance | path

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

1234567891011

/linux-5.19.10/drivers/misc/lkdtm/
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()
140 pr_err("Fail: refcount went crazy: %d\n", 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()
[all …]
/linux-5.19.10/tools/perf/tests/
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()
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-5.19.10/net/rxrpc/
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()
75 trace_rxrpc_skb(skb, op, refcount_read(&skb->users), n, in rxrpc_free_skb()
91 refcount_read(&skb->users), n, in rxrpc_purge_queue()
Dconn_object.c107 if (!conn || refcount_read(&conn->ref) == 0) in rxrpc_find_connection_rcu()
117 if (!conn || refcount_read(&conn->ref) == 0) { in rxrpc_find_connection_rcu()
284 int n = refcount_read(&conn->ref); in rxrpc_see_connection()
355 _enter("{%d,u=%d}", conn->debug_id, refcount_read(&conn->ref)); in rxrpc_destroy_connection()
357 ASSERTCMP(refcount_read(&conn->ref), ==, 0); in rxrpc_destroy_connection()
396 ASSERTCMP(refcount_read(&conn->ref), >, 0); in rxrpc_service_connection_reaper()
397 if (likely(refcount_read(&conn->ref) > 1)) in rxrpc_service_connection_reaper()
409 conn->debug_id, refcount_read(&conn->ref), in rxrpc_service_connection_reaper()
446 ASSERTCMP(refcount_read(&conn->ref), ==, 0); in rxrpc_service_connection_reaper()
474 conn, refcount_read(&conn->ref)); in rxrpc_destroy_all_connections()
Dcall_object.c115 _leave(" = %p [%d]", call, refcount_read(&call->ref)); in rxrpc_find_call_by_user_ID()
304 refcount_read(&call->ref), in rxrpc_new_client_call()
357 refcount_read(&call->ref), here, NULL); in rxrpc_new_client_call()
377 refcount_read(&call->ref), here, ERR_PTR(-EEXIST)); in rxrpc_new_client_call()
391 refcount_read(&call->ref), here, ERR_PTR(ret)); in rxrpc_new_client_call()
465 int n = refcount_read(&call->ref); in __rxrpc_queue_call()
482 int n = refcount_read(&call->ref); in rxrpc_see_call()
534 _enter("{%d,%d}", call->debug_id, refcount_read(&call->ref)); in rxrpc_release_call()
537 refcount_read(&call->ref), in rxrpc_release_call()
723 call, refcount_read(&call->ref), in rxrpc_destroy_all_calls()
Dproc.c104 refcount_read(&call->ref), in rxrpc_call_seq_show()
186 refcount_read(&conn->ref), in rxrpc_connection_seq_show()
236 refcount_read(&peer->ref), in rxrpc_peer_seq_show()
354 refcount_read(&local->ref), in rxrpc_local_seq_show()
Dpeer_object.c124 refcount_read(&peer->ref) > 0) in __rxrpc_lookup_peer_rcu()
143 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer_rcu()
381 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer()
486 refcount_read(&peer->ref), in rxrpc_destroy_all_peers()
Dconn_service.c102 if (refcount_read(&cursor->ref) == 0) in rxrpc_publish_service_conn()
145 refcount_read(&conn->ref), in rxrpc_prealloc_service_connection()
Dlocal_object.c301 int r = refcount_read(&local->ref); in rxrpc_queue_local()
410 refcount_read(&local->ref), NULL); in rxrpc_local_processor()
466 local, refcount_read(&local->ref)); in rxrpc_destroy_all_locals()
/linux-5.19.10/fs/fscache/
Dcache.c119 refcount_read(&candidate->ref), in fscache_lookup_cache()
248 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_add_cache()
297 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_begin_cache_access()
320 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_end_cache_access()
365 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_withdraw_cache()
395 refcount_read(&cache->ref), in fscache_caches_seq_show()
Dvolume.c33 int ref = refcount_read(&volume->ref); in fscache_see_volume()
50 refcount_read(&volume->ref), in __fscache_begin_volume_access()
115 refcount_read(&volume->ref), in fscache_end_volume_access()
457 refcount_read(&volume->ref), in fscache_withdraw_volume()
484 refcount_read(&volume->ref), in fscache_volumes_seq_show()
Dcookie.c106 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_init_access_gate()
128 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_end_cookie_access()
148 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_begin_cookie_access()
433 trace_fscache_cookie(cursor->debug_id, refcount_read(&cursor->ref), in fscache_hash_cookie()
582 trace_fscache_active(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_use_cookie()
659 unsigned int r = refcount_read(&cookie->ref); in __fscache_unuse_cookie()
674 r = refcount_read(&cookie->ref); in __fscache_unuse_cookie()
840 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_withdraw_cookie()
1117 refcount_read(&cookie->ref), in fscache_cookies_seq_show()
/linux-5.19.10/drivers/media/common/videobuf2/
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-5.19.10/tools/lib/perf/
Dmmap.c71 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put()
102 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume()
180 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init()
197 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done()
265 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
/linux-5.19.10/net/ipv4/
Dinet_timewait_sock.c159 if (refcount_read(&dr->tw_refcount) - 1 >= in inet_twsk_alloc()
277 refcount_read(&twsk_net(tw)->ns.count)) in inet_twsk_purge()
284 refcount_read(&twsk_net(tw)->ns.count))) { in inet_twsk_purge()
/linux-5.19.10/include/linux/
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()
Dkref.h36 return refcount_read(&kref->refcount); in kref_read()
/linux-5.19.10/kernel/cgroup/
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-5.19.10/lib/
Dref_tracker.c40 WARN_ON_ONCE(refcount_read(&dir->untracked) != 1); in ref_tracker_dir_exit()
41 WARN_ON_ONCE(refcount_read(&dir->no_tracker) != 1); in ref_tracker_dir_exit()
/linux-5.19.10/net/l2tp/
Dl2tp_debugfs.c165 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
166 refcount_read(&tunnel->ref_count)); in l2tp_dfs_seq_tunnel_show()
188 seq_printf(m, " refcnt %d\n", refcount_read(&session->ref_count)); in l2tp_dfs_seq_session_show()
/linux-5.19.10/crypto/
Dcryptd.c147 if (!refcount_read(refcnt)) in cryptd_enqueue_request()
244 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete()
481 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete()
735 refcnt = refcount_read(&ctx->refcnt); in cryptd_aead_crypt()
942 return refcount_read(&ctx->refcnt) - 1; in cryptd_skcipher_queued()
999 return refcount_read(&ctx->refcnt) - 1; in cryptd_ahash_queued()
1049 return refcount_read(&ctx->refcnt) - 1; in cryptd_aead_queued()
/linux-5.19.10/fs/lockd/
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-5.19.10/tools/include/linux/
Drefcount.h63 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
/linux-5.19.10/net/netfilter/ipvs/
Dip_vs_nq.c108 refcount_read(&least->refcnt), in ip_vs_nq_schedule()

1234567891011