Home
last modified time | relevance | path

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

1234567

/linux/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/drivers/misc/lkdtm/
H A Drefcount.c60 /* refcount_inc_not_zero() should behave just like refcount_inc() above. */
65 pr_info("attempting bad refcount_inc_not_zero() overflow\n"); in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW()
66 if (!refcount_inc_not_zero(&over)) in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW()
67 pr_warn("Weird: refcount_inc_not_zero() reported zero\n"); in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW()
225 pr_info("attempting safe refcount_inc_not_zero() from zero\n"); in lkdtm_REFCOUNT_INC_ZERO()
226 if (!refcount_inc_not_zero(&zero)) { in lkdtm_REFCOUNT_INC_ZERO()
322 pr_info("attempting bad refcount_inc_not_zero() from saturated\n"); in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
323 if (!refcount_inc_not_zero(&sat)) in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
324 pr_warn("Weird: refcount_inc_not_zero() reported zero\n"); in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
/linux/drivers/gpu/drm/
H A Ddrm_gem_shmem_helper.c197 if (refcount_inc_not_zero(&shmem->pages_use_count)) in drm_gem_shmem_get_pages_locked()
258 if (refcount_inc_not_zero(&shmem->pages_pin_count)) in drm_gem_shmem_pin_locked()
295 if (refcount_inc_not_zero(&shmem->pages_pin_count)) in drm_gem_shmem_pin()
360 if (refcount_inc_not_zero(&shmem->vmap_use_count)) { in drm_gem_shmem_vmap_locked()
583 !refcount_inc_not_zero(&shmem->pages_use_count)); in drm_gem_shmem_vm_open()
/linux/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/drivers/gpu/drm/i915/
H A Dintel_wakeref.c175 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
177 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
/linux/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/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/include/linux/sched/
H A Dtask_stack.h70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
/linux/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/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/Documentation/translations/zh_CN/core-api/
H A Drefcount-vs-atomic.rst108 * atomic_inc_not_zero() --> refcount_inc_not_zero()
/linux/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/drivers/gpu/drm/i915/display/
H A Dintel_dmc_wl.c450 if (!refcount_inc_not_zero(&wl->refcount)) in intel_dmc_wl_get()
457 if (refcount_inc_not_zero(&wl->refcount)) in intel_dmc_wl_get()
/linux/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/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/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/io_uring/
H A Deventfd.c92 if (!io_eventfd_trigger(ev_fd) || !refcount_inc_not_zero(&ev_fd->refs)) in io_eventfd_signal()
/linux/include/linux/can/
H A Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/linux/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/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/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()

1234567