Home
last modified time | relevance | path

Searched refs:refcount_inc_not_zero (Results 1 – 25 of 193) sorted by relevance

12345678

/linux-6.15/tools/include/linux/
H A Drefcount.h81 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 Drefcount.c66 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 Dnf_queue.c101 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 Dintel_wakeref.c174 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 Dkref.h131 return refcount_inc_not_zero(&kref->refcount); in kref_get_unless_zero()
H A Dshrinker.h141 return refcount_inc_not_zero(&shrinker->refcount); in shrinker_try_get()
H A Dipc_namespace.h145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
/linux-6.15/net/l2tp/
H A Dl2tp_core.c189 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 Duchan.c110 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 Dtask_stack.h70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/core/
H A Dsubdev.c199 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 Dnv50.c225 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 Drefcount-vs-atomic.rst108 * atomic_inc_not_zero() --> refcount_inc_not_zero()
/linux-6.15/include/net/
H A Darp.h43 if (n && !refcount_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
H A Dllc.h124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_dmc_wl.c452 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 Dct_fs_hmfs.c125 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 Dct_fs_smfs.c124 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 Dudp_diag.c54 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 Dtoken.c263 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 Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/linux-6.15/arch/x86/kvm/mmu/
H A Dtdp_mmu.h17 return refcount_inc_not_zero(&root->tdp_mmu_root_count); in kvm_tdp_mmu_get_root()
/linux-6.15/net/ipv6/
H A Dinet6_hashtables.c74 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 Dauth.h192 if (cred != NULL && refcount_inc_not_zero(&cred->cr_count)) in get_rpccred()
/linux-6.15/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()

12345678