Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/bpf/
Dbpf_local_storage.c22 struct bpf_local_storage_elem *selem) in select_bucket() argument
24 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket()
54 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_lockless(const struct bpf_local_storage_elem *selem) in selem_linked_to_map_lockless() argument
66 return !hlist_unhashed_lockless(&selem->map_node); in selem_linked_to_map_lockless()
69 static bool selem_linked_to_map(const struct bpf_local_storage_elem *selem) in selem_linked_to_map() argument
71 return !hlist_unhashed(&selem->map_node); in selem_linked_to_map()
[all …]
/linux-6.6.21/net/core/
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()
587 struct bpf_local_storage_elem *selem; in bpf_sk_storage_diag_put_all() local
607 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_diag_put_all()
608 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_diag_put_all()
[all …]
/linux-6.6.21/include/linux/
Dbpf_local_storage.h149 struct bpf_local_storage_elem *selem);
151 void bpf_selem_unlink(struct bpf_local_storage_elem *selem, bool reuse_now);
154 struct bpf_local_storage_elem *selem);
160 void bpf_selem_free(struct bpf_local_storage_elem *selem,