Home
last modified time | relevance | path

Searched refs:selem (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/bpf/
H A Dbpf_local_storage.c54 static bool selem_linked_to_storage_lockless(const struct bpf_local_storage_elem *selem) in selem_linked_to_storage_lockless() argument
56 return !hlist_unhashed_lockless(&selem->snode); in selem_linked_to_storage_lockless()
59 static bool selem_linked_to_storage(const struct bpf_local_storage_elem *selem) in selem_linked_to_storage() argument
61 return !hlist_unhashed(&selem->snode); in selem_linked_to_storage()
64 static bool selem_linked_to_map(const struct bpf_local_storage_elem *selem) in selem_linked_to_map() argument
66 return !hlist_unhashed(&selem->map_node); in selem_linked_to_map()
73 struct bpf_local_storage_elem *selem; in bpf_selem_alloc() local
79 selem = bpf_map_kmalloc_nolock(&smap->map, smap->elem_size, in bpf_selem_alloc()
82 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
86 if (selem) { in bpf_selem_alloc()
[all …]
/linux/include/linux/
H A Dbpf_local_storage.h145 struct bpf_local_storage_elem *selem);
153 struct bpf_local_storage_elem *selem; in bpf_local_storage_lookup() local
162 hlist_for_each_entry_rcu(selem, &local_storage->list, snode, in bpf_local_storage_lookup()
164 if (rcu_access_pointer(SDATA(selem)->smap) == smap) in bpf_local_storage_lookup()
167 if (!selem) in bpf_local_storage_lookup()
170 __bpf_local_storage_insert_cache(local_storage, smap, selem); in bpf_local_storage_lookup()
171 return SDATA(selem); in bpf_local_storage_lookup()
185 struct bpf_local_storage_elem *selem);
187 int bpf_selem_unlink(struct bpf_local_storage_elem *selem);
191 struct bpf_local_storage_elem *selem);
[all …]
/linux/net/core/
H A Dbpf_sk_storage.c136 struct bpf_local_storage_elem *selem) in bpf_sk_storage_clone_elem() argument
146 SDATA(selem)->data, true); in bpf_sk_storage_clone_elem()
149 SDATA(selem)->data); in bpf_sk_storage_clone_elem()
158 struct bpf_local_storage_elem *selem; in bpf_sk_storage_clone() local
169 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_clone()
174 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone()
187 copy_selem = bpf_sk_storage_clone_elem(newsk, smap, selem); in bpf_sk_storage_clone()
580 struct bpf_local_storage_elem *selem; in bpf_sk_storage_diag_put_all() local
600 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_diag_put_all()
601 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all()
[all …]