Home
last modified time | relevance | path

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

/Linux-v5.15/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 = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
72 if (selem) { in bpf_selem_alloc()
74 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()
Dbpf_task_storage.c72 struct bpf_local_storage_elem *selem; in bpf_task_storage_free() local
97 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_task_storage_free()
101 bpf_selem_unlink_map(selem); in bpf_task_storage_free()
103 local_storage, selem, false); in bpf_task_storage_free()
/Linux-v5.15/net/core/
Dbpf_sk_storage.c49 struct bpf_local_storage_elem *selem; in bpf_sk_storage_free() local
71 hlist_for_each_entry_safe(selem, n, &sk_storage->list, snode) { in bpf_sk_storage_free()
75 bpf_selem_unlink_map(selem); in bpf_sk_storage_free()
77 selem, true); in bpf_sk_storage_free()
169 struct bpf_local_storage_elem *selem) in bpf_sk_storage_clone_elem() argument
179 SDATA(selem)->data, true); in bpf_sk_storage_clone_elem()
182 SDATA(selem)->data); in bpf_sk_storage_clone_elem()
191 struct bpf_local_storage_elem *selem; in bpf_sk_storage_clone() local
202 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_clone()
207 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone()
[all …]
/Linux-v5.15/include/linux/
Dbpf_local_storage.h138 struct bpf_local_storage_elem *selem);
141 struct bpf_local_storage_elem *selem,
144 void bpf_selem_unlink(struct bpf_local_storage_elem *selem);
147 struct bpf_local_storage_elem *selem);
149 void bpf_selem_unlink_map(struct bpf_local_storage_elem *selem);