Searched refs:selem (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/kernel/bpf/ |
D | bpf_local_storage.c | 22 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(const struct bpf_local_storage_elem *selem) in selem_linked_to_storage() argument 56 return !hlist_unhashed(&selem->snode); in selem_linked_to_storage() 59 static bool selem_linked_to_map(const struct bpf_local_storage_elem *selem) in selem_linked_to_map() argument 61 return !hlist_unhashed(&selem->map_node); in selem_linked_to_map() 68 struct bpf_local_storage_elem *selem; in bpf_selem_alloc() local 73 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc() 75 if (selem) { in bpf_selem_alloc() 77 copy_map_value(&smap->map, SDATA(selem)->data, value); in bpf_selem_alloc() [all …]
|
D | bpf_inode_storage.c | 59 struct bpf_local_storage_elem *selem; in bpf_inode_storage_free() local 87 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_inode_storage_free() 91 bpf_selem_unlink_map(selem); in bpf_inode_storage_free() 93 local_storage, selem, false, false); in bpf_inode_storage_free()
|
D | bpf_task_storage.c | 74 struct bpf_local_storage_elem *selem; in bpf_task_storage_free() local 99 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_task_storage_free() 103 bpf_selem_unlink_map(selem); in bpf_task_storage_free() 105 local_storage, selem, false, false); in bpf_task_storage_free()
|
/linux-6.1.9/net/core/ |
D | bpf_sk_storage.c | 51 struct bpf_local_storage_elem *selem; in bpf_sk_storage_free() local 73 hlist_for_each_entry_safe(selem, n, &sk_storage->list, snode) { in bpf_sk_storage_free() 77 bpf_selem_unlink_map(selem); in bpf_sk_storage_free() 79 sk_storage, selem, true, false); in bpf_sk_storage_free() 171 struct bpf_local_storage_elem *selem) in bpf_sk_storage_clone_elem() argument 181 SDATA(selem)->data, true); in bpf_sk_storage_clone_elem() 184 SDATA(selem)->data); in bpf_sk_storage_clone_elem() 193 struct bpf_local_storage_elem *selem; in bpf_sk_storage_clone() local 204 hlist_for_each_entry_rcu(selem, &sk_storage->list, snode) { in bpf_sk_storage_clone() 209 smap = rcu_dereference(SDATA(selem)->smap); in bpf_sk_storage_clone() [all …]
|
/linux-6.1.9/include/linux/ |
D | bpf_local_storage.h | 142 struct bpf_local_storage_elem *selem); 145 struct bpf_local_storage_elem *selem, 148 void bpf_selem_unlink(struct bpf_local_storage_elem *selem, bool use_trace_rcu); 151 struct bpf_local_storage_elem *selem); 153 void bpf_selem_unlink_map(struct bpf_local_storage_elem *selem);
|