| /OK3568_Linux_fs/kernel/Documentation/core-api/ |
| H A D | kref.rst | 237 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))
|
| /OK3568_Linux_fs/kernel/net/batman-adv/ |
| H A D | originator.c | 76 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()
|
| H A D | hard-interface.h | 138 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
|
| H A D | gateway_client.c | 89 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()
|
| H A D | multicast.c | 1204 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()
|
| /OK3568_Linux_fs/kernel/net/ceph/ |
| H A D | string_table.c | 31 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()
|
| /OK3568_Linux_fs/kernel/security/apparmor/include/ |
| H A D | policy.h | 260 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()
|
| H A D | policy_unpack.h | 93 if (data && kref_get_unless_zero(&(data->count))) in __aa_get_loaddata()
|
| H A D | label.h | 376 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/ |
| H A D | i915_perf.h | 45 if (kref_get_unless_zero(&oa_config->ref)) in i915_oa_config_get()
|
| H A D | i915_vma.h | 135 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()
|
| /OK3568_Linux_fs/kernel/include/linux/ceph/ |
| H A D | string_table.h | 56 kref_get_unless_zero(&___str->kref)) \
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | kref.h | 109 static inline int __must_check kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() function
|
| H A D | dma-fence.h | 304 if (kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_throttle.c | 55 if (!kref_get_unless_zero(&ctx->ref)) in i915_gem_throttle_ioctl()
|
| H A D | i915_gem_pm.c | 82 if (!kref_get_unless_zero(&obj->base.refcount)) in i915_gem_suspend_late()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_frontbuffer.h | 74 if (unlikely(!kref_get_unless_zero(&front->ref))) in __intel_frontbuffer_get()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/ |
| H A D | ttm_object.c | 276 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/host1x/ |
| H A D | channel.c | 72 if (!kref_get_unless_zero(&ch->refcount)) in host1x_channel_get_index()
|
| /OK3568_Linux_fs/kernel/fs/configfs/ |
| H A D | item.c | 113 if (item && kref_get_unless_zero(&item->ci_kref)) in config_item_get_unless_zero()
|
| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | svcauth.c | 200 if (!kref_get_unless_zero(&hp->ref)) in auth_domain_find()
|
| /OK3568_Linux_fs/kernel/include/drm/ttm/ |
| H A D | ttm_bo_api.h | 243 if (!kref_get_unless_zero(&bo->kref)) in ttm_bo_get_unless_zero()
|
| /OK3568_Linux_fs/kernel/include/net/9p/ |
| H A D | client.h | 230 return kref_get_unless_zero(&r->refcount); in p9_req_try_get()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireguard/ |
| H A D | peer.c | 76 if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount))) in wg_peer_get_maybe_zero()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/libfc/ |
| H A D | fc_disc.c | 58 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports() 279 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done()
|