Home
last modified time | relevance | path

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

1234

/Linux-v4.19/Documentation/
Dkref.txt233 The above example could also be optimized using kref_get_unless_zero() in
242 if (!kref_get_unless_zero(&entry->refcount))
265 it's important that kref_get_unless_zero is enclosed in the same critical
267 otherwise kref_get_unless_zero may reference already freed memory.
268 Note that it is illegal to use kref_get_unless_zero without checking its
270 kref_get_unless_zero() will return true, then use kref_get() instead.
275 The function kref_get_unless_zero also makes it possible to use rcu
293 if (!kref_get_unless_zero(&entry->refcount))
/Linux-v4.19/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()
/Linux-v4.19/net/batman-adv/
Doriginator.c87 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
134 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
359 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
387 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
466 if (!kref_get_unless_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
546 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
648 if (!kref_get_unless_zero(&tmp_hardif_neigh->refcount)) in batadv_hardif_neigh_get()
1263 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()
1324 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_purge_orig_node()
Dhard-interface.h149 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
Dgateway_client.c113 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node()
142 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()
411 if (!kref_get_unless_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
Dbat_v_ogm.c183 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_v_ogm_send()
742 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_v_ogm_process()
Dmulticast.c889 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv4_node_get()
916 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv6_node_get()
967 if (!kref_get_unless_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_unsnoop_node_get()
Dhard-interface.c84 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_by_netdev()
448 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_active()
/Linux-v4.19/security/apparmor/include/
Dpolicy.h252 if (p && kref_get_unless_zero(&p->label.count)) in aa_get_profile_not0()
272 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu()
Dpolicy_unpack.h91 if (data && kref_get_unless_zero(&(data->count))) in __aa_get_loaddata()
Dlabel.h378 if (l && kref_get_unless_zero(&l->count)) in __aa_get_label()
407 } while (c && !kref_get_unless_zero(&c->count)); in aa_get_label_rcu()
/Linux-v4.19/include/linux/
Dkref.h114 static inline int __must_check kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() function
Ddma-fence.h284 if (kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu()
/Linux-v4.19/include/linux/ceph/
Dstring_table.h56 kref_get_unless_zero(&___str->kref)) \
/Linux-v4.19/drivers/target/
Dtarget_core_tmr.c139 return kref_get_unless_zero(&se_cmd->cmd_kref); in __target_check_io_state()
250 rc = kref_get_unless_zero(&cmd->cmd_kref); in core_tmr_drain_tmr_list()
/Linux-v4.19/drivers/gpu/host1x/
Dchannel.c83 if (!kref_get_unless_zero(&ch->refcount)) in host1x_channel_get_index()
/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_object.c243 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup()
265 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref()
347 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add()
/Linux-v4.19/fs/configfs/
Ditem.c127 if (item && kref_get_unless_zero(&item->ci_kref)) in config_item_get_unless_zero()
/Linux-v4.19/drivers/infiniband/core/
Drestrack.c189 return kref_get_unless_zero(&res->kref); in rdma_restrack_get()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_object.h323 if (obj && !kref_get_unless_zero(&obj->base.refcount)) in i915_gem_object_lookup()
/Linux-v4.19/drivers/scsi/libfc/
Dfc_disc.c70 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports()
291 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done()
/Linux-v4.19/drivers/scsi/device_handler/
Dscsi_dh_alua.c206 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg()
1024 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_activate()
1058 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_check()
/Linux-v4.19/block/
Dbsg-lib.c143 return kref_get_unless_zero(&job->kref); in bsg_job_get()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_dp_aux_dev.c63 if (!kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor()
/Linux-v4.19/lib/
Dklist.c286 if (n && kref_get_unless_zero(&n->n_ref)) in klist_iter_init_node()

1234