Searched refs:local_storage (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/kernel/bpf/ |
D | bpf_local_storage.c | 87 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage, in bpf_selem_unlink_storage_nolock() argument 96 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock() 106 &local_storage->list); in bpf_selem_unlink_storage_nolock() 109 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock() 129 if (rcu_access_pointer(local_storage->cache[smap->cache_idx]) == in bpf_selem_unlink_storage_nolock() 131 RCU_INIT_POINTER(local_storage->cache[smap->cache_idx], NULL); in bpf_selem_unlink_storage_nolock() 140 struct bpf_local_storage *local_storage; in __bpf_selem_unlink_storage() local 147 local_storage = rcu_dereference(selem->local_storage); in __bpf_selem_unlink_storage() 148 raw_spin_lock_bh(&local_storage->lock); in __bpf_selem_unlink_storage() 151 local_storage, selem, true); in __bpf_selem_unlink_storage() [all …]
|
D | bpf_inode_storage.c | 58 struct bpf_local_storage *local_storage; in bpf_inode_storage_free() local 69 local_storage = rcu_dereference(bsb->storage); in bpf_inode_storage_free() 70 if (!local_storage) { in bpf_inode_storage_free() 84 raw_spin_lock_bh(&local_storage->lock); in bpf_inode_storage_free() 85 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_inode_storage_free() 91 local_storage, selem, false); in bpf_inode_storage_free() 93 raw_spin_unlock_bh(&local_storage->lock); in bpf_inode_storage_free() 100 kfree_rcu(local_storage, rcu); in bpf_inode_storage_free()
|
D | Makefile | 11 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
|
/kernel/linux/linux-5.10/include/linux/ |
D | bpf_local_storage.h | 71 struct bpf_local_storage __rcu *local_storage; member 125 bpf_local_storage_lookup(struct bpf_local_storage *local_storage, 136 void bpf_selem_link_storage_nolock(struct bpf_local_storage *local_storage, 139 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage,
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | test_local_storage.c | 29 struct local_storage *skel = NULL; in test_test_local_storage()
|
/kernel/linux/linux-5.10/net/core/ |
D | bpf_sk_storage.c | 252 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 688 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 701 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 768 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()
|