Home
last modified time | relevance | path

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

/linux-6.15/kernel/bpf/
H A Dbpf_local_storage.c85 if (selem) in bpf_selem_alloc()
99 if (selem) { in bpf_selem_alloc()
106 return selem; in bpf_selem_alloc()
192 kfree(selem); in __bpf_selem_free_trace_rcu()
194 kfree_rcu(selem, rcu); in __bpf_selem_free_trace_rcu()
202 kfree_rcu(selem, rcu); in __bpf_selem_free()
328 SDATA(selem)) in bpf_selem_unlink_storage_nolock()
359 if (!selem) { in check_storage_bpf_ma()
586 if (!selem) in bpf_local_storage_update()
596 return SDATA(selem); in bpf_local_storage_update()
[all …]
/linux-6.15/include/linux/
H A Dbpf_local_storage.h140 struct bpf_local_storage_elem *selem);
148 struct bpf_local_storage_elem *selem; in bpf_local_storage_lookup() local
157 hlist_for_each_entry_rcu(selem, &local_storage->list, snode, in bpf_local_storage_lookup()
159 if (rcu_access_pointer(SDATA(selem)->smap) == smap) in bpf_local_storage_lookup()
162 if (!selem) in bpf_local_storage_lookup()
165 __bpf_local_storage_insert_cache(local_storage, smap, selem); in bpf_local_storage_lookup()
166 return SDATA(selem); in bpf_local_storage_lookup()
181 struct bpf_local_storage_elem *selem);
183 void bpf_selem_unlink(struct bpf_local_storage_elem *selem, bool reuse_now);
186 struct bpf_local_storage_elem *selem);
[all …]
/linux-6.15/net/core/
H A Dbpf_sk_storage.c147 SDATA(selem)->data, true); in bpf_sk_storage_clone_elem()
150 SDATA(selem)->data); in bpf_sk_storage_clone_elem()
714 selem = prev_selem; in bpf_sk_storage_map_seq_find_next()
716 while (selem) { in bpf_sk_storage_map_seq_find_next()
717 selem = hlist_entry_safe(rcu_dereference(hlist_next_rcu(&selem->map_node)), in bpf_sk_storage_map_seq_find_next()
719 if (!selem) { in bpf_sk_storage_map_seq_find_next()
729 return selem; in bpf_sk_storage_map_seq_find_next()
743 return selem; in bpf_sk_storage_map_seq_find_next()
761 if (!selem) in bpf_sk_storage_map_seq_start()
766 return selem; in bpf_sk_storage_map_seq_start()
[all …]