/linux/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/drivers/misc/lkdtm/ |
H A D | refcount.c | 60 /* 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 D | drm_gem_shmem_helper.c | 197 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 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/drivers/gpu/drm/i915/ |
H A D | intel_wakeref.c | 175 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 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/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/include/linux/sched/ |
H A D | task_stack.h | 70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
|
/linux/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/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/Documentation/translations/zh_CN/core-api/ |
H A D | refcount-vs-atomic.rst | 108 * atomic_inc_not_zero() --> refcount_inc_not_zero()
|
/linux/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/drivers/gpu/drm/i915/display/ |
H A D | intel_dmc_wl.c | 450 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 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/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/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/io_uring/ |
H A D | eventfd.c | 92 if (!io_eventfd_trigger(ev_fd) || !refcount_inc_not_zero(&ev_fd->refs)) in io_eventfd_signal()
|
/linux/include/linux/can/ |
H A D | skb.h | 80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
|
/linux/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/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/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()
|