| /linux-6.15/tools/include/linux/ |
| H A D | refcount.h | 81 bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() function 114 REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n"); in refcount_inc()
|
| /linux-6.15/drivers/misc/lkdtm/ |
| H A D | refcount.c | 66 if (!refcount_inc_not_zero(&over)) in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW() 226 if (!refcount_inc_not_zero(&zero)) { in lkdtm_REFCOUNT_INC_ZERO() 323 if (!refcount_inc_not_zero(&sat)) in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
|
| /linux-6.15/net/netfilter/ |
| H A D | nf_queue.c | 101 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs() 185 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
|
| /linux-6.15/drivers/gpu/drm/i915/ |
| H A D | intel_wakeref.c | 174 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto() 176 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
|
| /linux-6.15/include/linux/ |
| H A D | kref.h | 131 return refcount_inc_not_zero(&kref->refcount); in kref_get_unless_zero()
|
| H A D | shrinker.h | 141 return refcount_inc_not_zero(&shrinker->refcount); in shrinker_try_get()
|
| H A D | ipc_namespace.h | 145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
|
| /linux-6.15/net/l2tp/ |
| H A D | l2tp_core.c | 189 refcount_inc_not_zero(&tunnel->ref_count)) { in l2tp_sk_to_tunnel() 222 if (tunnel && refcount_inc_not_zero(&tunnel->ref_count)) { in l2tp_tunnel_get() 241 if (refcount_inc_not_zero(&tunnel->ref_count)) { in l2tp_tunnel_get_next() 262 refcount_inc_not_zero(&session->ref_count)) { in l2tp_v3_session_get() 285 refcount_inc_not_zero(&session->ref_count)) { in l2tp_v3_session_get() 305 if (session && refcount_inc_not_zero(&session->ref_count)) { in l2tp_v2_session_get() 349 refcount_inc_not_zero(&session->ref_count)) { in l2tp_v2_session_get_next() 377 refcount_inc_not_zero(&session->ref_count)) { in l2tp_v3_session_get_next() 401 refcount_inc_not_zero(&session->ref_count)) { in l2tp_v3_session_get_next()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | uchan.c | 110 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0() 112 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0() 113 if (!refcount_inc_not_zero(&ectx->uses)) { in nvkm_uchan_object_init_0()
|
| /linux-6.15/include/linux/sched/ |
| H A D | task_stack.h | 70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | subdev.c | 199 if (subdev && !refcount_inc_not_zero(&subdev->use.refcount)) { in nvkm_subdev_ref() 201 if (!refcount_inc_not_zero(&subdev->use.refcount)) { in nvkm_subdev_ref()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
| H A D | nv50.c | 225 if (refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire() 235 if (refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire() 247 if (!refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire()
|
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | refcount-vs-atomic.rst | 108 * atomic_inc_not_zero() --> refcount_inc_not_zero()
|
| /linux-6.15/include/net/ |
| H A D | arp.h | 43 if (n && !refcount_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
|
| H A D | llc.h | 124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_dmc_wl.c | 452 if (!refcount_inc_not_zero(&wl->refcount)) in intel_dmc_wl_get() 459 if (refcount_inc_not_zero(&wl->refcount)) in intel_dmc_wl_get()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | ct_fs_hmfs.c | 125 if (refcount_inc_not_zero(&hmfs_matcher->ref)) in mlx5_ct_fs_hmfs_matcher_get() 131 if (refcount_inc_not_zero(&hmfs_matcher->ref)) in mlx5_ct_fs_hmfs_matcher_get()
|
| H A D | ct_fs_smfs.c | 124 if (refcount_inc_not_zero(&smfs_matcher->ref)) in mlx5_ct_fs_smfs_matcher_get() 132 if (refcount_inc_not_zero(&smfs_matcher->ref)) in mlx5_ct_fs_smfs_matcher_get()
|
| /linux-6.15/net/ipv4/ |
| H A D | udp_diag.c | 54 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp_dump_one() 205 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in __udp_diag_destroy()
|
| /linux-6.15/net/mptcp/ |
| H A D | token.c | 263 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock() 322 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
|
| /linux-6.15/include/linux/can/ |
| H A D | skb.h | 80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
|
| /linux-6.15/arch/x86/kvm/mmu/ |
| H A D | tdp_mmu.h | 17 return refcount_inc_not_zero(&root->tdp_mmu_root_count); in kvm_tdp_mmu_get_root()
|
| /linux-6.15/net/ipv6/ |
| H A D | inet6_hashtables.c | 74 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established() 258 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
|
| /linux-6.15/include/linux/sunrpc/ |
| H A D | auth.h | 192 if (cred != NULL && refcount_inc_not_zero(&cred->cr_count)) in get_rpccred()
|
| /linux-6.15/net/ipv4/netfilter/ |
| H A D | nf_tproxy_ipv4.c | 103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
|