Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_local_storage.c19 struct bpf_local_storage_elem *selem) in select_bucket() argument
21 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket()
51 static bool selem_linked_to_storage(const struct bpf_local_storage_elem *selem) in selem_linked_to_storage() argument
53 return !hlist_unhashed(&selem->snode); in selem_linked_to_storage()
56 static bool selem_linked_to_map(const struct bpf_local_storage_elem *selem) in selem_linked_to_map() argument
58 return !hlist_unhashed(&selem->map_node); in selem_linked_to_map()
65 struct bpf_local_storage_elem *selem; in bpf_selem_alloc() local
70 selem = kzalloc(smap->elem_size, GFP_ATOMIC | __GFP_NOWARN); in bpf_selem_alloc()
71 if (selem) { in bpf_selem_alloc()
73 memcpy(SDATA(selem)->data, value, smap->map.value_size); in bpf_selem_alloc()
[all …]
Dbpf_inode_storage.c57 struct bpf_local_storage_elem *selem; in bpf_inode_storage_free() local
85 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_inode_storage_free()
89 bpf_selem_unlink_map(selem); in bpf_inode_storage_free()
91 local_storage, selem, false); in bpf_inode_storage_free()
/kernel/linux/linux-5.10/net/core/
Dbpf_sk_storage.c60 struct bpf_local_storage_elem *selem; in bpf_sk_storage_free() local
82 hlist_for_each_entry_safe(selem, n, &sk_storage->list, snode) { in bpf_sk_storage_free()
86 bpf_selem_unlink_map(selem); in bpf_sk_storage_free()
88 selem, true); in bpf_sk_storage_free()
180 struct bpf_local_storage_elem *selem) in bpf_sk_storage_clone_elem() argument
190 SDATA(selem)->data, true); in bpf_sk_storage_clone_elem()
193 SDATA(selem)->data); in bpf_sk_storage_clone_elem()
202 struct bpf_local_storage_elem *selem; in bpf_sk_storage_clone() local
213 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_clone()
218 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbpf_local_storage.h137 struct bpf_local_storage_elem *selem);
140 struct bpf_local_storage_elem *selem,
143 void bpf_selem_unlink(struct bpf_local_storage_elem *selem);
146 struct bpf_local_storage_elem *selem);
148 void bpf_selem_unlink_map(struct bpf_local_storage_elem *selem);