Home
last modified time | relevance | path

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

1234567

/Linux-v6.1/tools/include/linux/
Drefcount.h76 bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() function
109 REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n"); in refcount_inc()
/Linux-v6.1/drivers/misc/lkdtm/
Drefcount.c66 if (!refcount_inc_not_zero(&over)) in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW()
211 if (!refcount_inc_not_zero(&zero)) { in lkdtm_REFCOUNT_INC_ZERO()
308 if (!refcount_inc_not_zero(&sat)) in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
/Linux-v6.1/drivers/gpu/drm/i915/
Dintel_wakeref.c166 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
168 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/core/
Dengine.c57 if (!refcount_inc_not_zero(&engine->use.refcount)) { in nvkm_engine_ref()
59 if (!refcount_inc_not_zero(&engine->use.refcount)) { in nvkm_engine_ref()
/Linux-v6.1/include/linux/
Dkref.h111 return refcount_inc_not_zero(&kref->refcount); in kref_get_unless_zero()
Dipc_namespace.h145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
Drefcount.h243 static inline __must_check bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() function
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dnv50.c224 if (refcount_inc_not_zero(&iobj->maps)) in nv50_instobj_acquire()
231 if (refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire()
243 if (!refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire()
/Linux-v6.1/include/linux/sched/
Dtask_stack.h68 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
/Linux-v6.1/net/netfilter/
Dnf_queue.c103 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
187 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
/Linux-v6.1/Documentation/translations/zh_CN/core-api/
Drefcount-vs-atomic.rst108 * atomic_inc_not_zero() --> refcount_inc_not_zero()
/Linux-v6.1/include/net/
Darp.h43 if (n && !refcount_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
Dllc.h124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
/Linux-v6.1/net/mptcp/
Dtoken.c259 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
318 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/Linux-v6.1/net/ipv4/
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-v6.1/drivers/block/
Dnbd.c410 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_xmit_timeout()
977 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_handle_cmd()
1560 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open()
1564 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_open()
1568 if (refcount_inc_not_zero(&nbd->config_refs)) { in nbd_open()
1861 if (refcount_inc_not_zero(&nbd->refs)) in nbd_find_get_unused()
1953 !refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect()
2137 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_disconnect()
2143 if (!refcount_inc_not_zero(&nbd->config_refs)) in nbd_genl_disconnect()
2191 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_reconfigure()
[all …]
/Linux-v6.1/arch/x86/kvm/mmu/
Dtdp_mmu.h12 return refcount_inc_not_zero(&root->tdp_mmu_root_count); in kvm_tdp_mmu_get_root()
/Linux-v6.1/net/ipv6/
Dinet6_hashtables.c74 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established()
237 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
/Linux-v6.1/tools/perf/util/
Dcomm.c24 if (cs && refcount_inc_not_zero(&cs->refcnt)) in comm_str__get()
/Linux-v6.1/include/linux/can/
Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/Linux-v6.1/net/ipv4/netfilter/
Dnf_tproxy_ipv4.c101 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/Linux-v6.1/include/linux/sunrpc/
Dauth.h190 if (cred != NULL && refcount_inc_not_zero(&cred->cr_count)) in get_rpccred()
/Linux-v6.1/net/ipv6/netfilter/
Dnf_tproxy_ipv6.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/Linux-v6.1/fs/afs/
Dsecurity.c209 if (permits && !refcount_inc_not_zero(&permits->usage)) in afs_cache_permit()
260 if (refcount_inc_not_zero(&xpermits->usage)) { in afs_cache_permit()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c125 if (refcount_inc_not_zero(&smfs_matcher->ref)) in mlx5_ct_fs_smfs_matcher_get()
133 if (refcount_inc_not_zero(&smfs_matcher->ref)) in mlx5_ct_fs_smfs_matcher_get()

1234567