Searched refs:local_storage (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | bpf_local_storage.c | 98 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage, in bpf_selem_unlink_storage_nolock() argument 107 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock() 117 &local_storage->list); in bpf_selem_unlink_storage_nolock() 120 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock() 140 if (rcu_access_pointer(local_storage->cache[smap->cache_idx]) == in bpf_selem_unlink_storage_nolock() 142 RCU_INIT_POINTER(local_storage->cache[smap->cache_idx], NULL); in bpf_selem_unlink_storage_nolock() 151 struct bpf_local_storage *local_storage; in __bpf_selem_unlink_storage() local 159 local_storage = rcu_dereference(selem->local_storage); in __bpf_selem_unlink_storage() 160 raw_spin_lock_irqsave(&local_storage->lock, flags); in __bpf_selem_unlink_storage() 163 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 | bpf_task_storage.c | 73 struct bpf_local_storage *local_storage; in bpf_task_storage_free() local 80 local_storage = rcu_dereference(task->bpf_storage); in bpf_task_storage_free() 81 if (!local_storage) { in bpf_task_storage_free() 96 raw_spin_lock_irqsave(&local_storage->lock, flags); in bpf_task_storage_free() 97 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_task_storage_free() 103 local_storage, selem, false); in bpf_task_storage_free() 105 raw_spin_unlock_irqrestore(&local_storage->lock, flags); in bpf_task_storage_free() 113 kfree_rcu(local_storage, rcu); in bpf_task_storage_free()
|
D | Makefile | 11 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
|