Home
last modified time | relevance | path

Searched refs:kref_get_unless_zero (Results 1 – 25 of 120) sorted by relevance

12345

/kernel/linux/linux-5.10/Documentation/core-api/
Dkref.rst237 The above example could also be optimized using kref_get_unless_zero() in
246 if (!kref_get_unless_zero(&entry->refcount))
269 it's important that kref_get_unless_zero is enclosed in the same critical
271 otherwise kref_get_unless_zero may reference already freed memory.
272 Note that it is illegal to use kref_get_unless_zero without checking its
274 kref_get_unless_zero() will return true, then use kref_get() instead.
279 The function kref_get_unless_zero also makes it possible to use rcu
297 if (!kref_get_unless_zero(&entry->refcount))
/kernel/linux/linux-5.10/net/ceph/
Dstring_table.c31 if (exist && !kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
70 } else if (!kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
/kernel/linux/linux-5.10/net/batman-adv/
Doriginator.c76 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
123 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
308 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
336 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
415 if (!kref_get_unless_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
495 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
597 if (!kref_get_unless_zero(&tmp_hardif_neigh->refcount)) in batadv_hardif_neigh_get()
1190 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()
1251 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_purge_orig_node()
Dhard-interface.h138 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
Dgateway_client.c89 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node()
118 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()
388 if (!kref_get_unless_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
Dmulticast.c1204 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv4_node_get()
1231 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv6_node_get()
1282 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_unsnoop_node_get()
1309 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_rtr4_node_get()
1336 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_rtr6_node_get()
/kernel/linux/linux-5.10/security/apparmor/include/
Dpolicy.h260 if (p && kref_get_unless_zero(&p->label.count)) in aa_get_profile_not0()
280 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu()
Dpolicy_unpack.h93 if (data && kref_get_unless_zero(&(data->count))) in __aa_get_loaddata()
Dlabel.h376 if (l && kref_get_unless_zero(&l->count)) in __aa_get_label()
405 } while (c && !kref_get_unless_zero(&c->count)); in aa_get_label_rcu()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_perf.h45 if (kref_get_unless_zero(&oa_config->ref)) in i915_oa_config_get()
Di915_vma.h135 if (likely(kref_get_unless_zero(&vma->obj->base.refcount))) in i915_vma_tryget()
215 if (kref_get_unless_zero(&vma->ref)) in __i915_vma_get()
/kernel/linux/linux-5.10/include/linux/ceph/
Dstring_table.h56 kref_get_unless_zero(&___str->kref)) \
/kernel/linux/linux-5.10/include/linux/
Dkref.h109 static inline int __must_check kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() function
Ddma-fence.h304 if (kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_throttle.c55 if (!kref_get_unless_zero(&ctx->ref)) in i915_gem_throttle_ioctl()
Di915_gem_pm.c82 if (!kref_get_unless_zero(&obj->base.refcount)) in i915_gem_suspend_late()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_frontbuffer.h74 if (unlikely(!kref_get_unless_zero(&front->ref))) in __intel_frontbuffer_get()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dttm_object.c276 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup()
292 if (base && !kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref()
371 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dchannel.c72 if (!kref_get_unless_zero(&ch->refcount)) in host1x_channel_get_index()
/kernel/linux/linux-5.10/fs/configfs/
Ditem.c113 if (item && kref_get_unless_zero(&item->ci_kref)) in config_item_get_unless_zero()
/kernel/linux/linux-5.10/net/sunrpc/
Dsvcauth.c200 if (!kref_get_unless_zero(&hp->ref)) in auth_domain_find()
/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_bo_api.h243 if (!kref_get_unless_zero(&bo->kref)) in ttm_bo_get_unless_zero()
/kernel/linux/linux-5.10/include/net/9p/
Dclient.h230 return kref_get_unless_zero(&r->refcount); in p9_req_try_get()
/kernel/linux/linux-5.10/drivers/net/wireguard/
Dpeer.c76 if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount))) in wg_peer_get_maybe_zero()
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dcache.h198 if (kref_get_unless_zero(&h->ref)) in cache_get_rcu()

12345