Home
last modified time | relevance | path

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

/kernel/bpf/
Dbpf_local_storage.c99 struct bpf_local_storage *local_storage; in bpf_local_storage_free_rcu() local
101 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in bpf_local_storage_free_rcu()
102 kfree_rcu(local_storage, rcu); in bpf_local_storage_free_rcu()
117 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage, in bpf_selem_unlink_storage_nolock() argument
126 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock()
136 &local_storage->list); in bpf_selem_unlink_storage_nolock()
139 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock()
159 if (rcu_access_pointer(local_storage->cache[smap->cache_idx]) == in bpf_selem_unlink_storage_nolock()
161 RCU_INIT_POINTER(local_storage->cache[smap->cache_idx], NULL); in bpf_selem_unlink_storage_nolock()
174 struct bpf_local_storage *local_storage; in __bpf_selem_unlink_storage() local
[all …]
Dbpf_inode_storage.c60 struct bpf_local_storage *local_storage; in bpf_inode_storage_free() local
71 local_storage = rcu_dereference(bsb->storage); in bpf_inode_storage_free()
72 if (!local_storage) { in bpf_inode_storage_free()
86 raw_spin_lock_bh(&local_storage->lock); in bpf_inode_storage_free()
87 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_inode_storage_free()
93 local_storage, selem, false, false); in bpf_inode_storage_free()
95 raw_spin_unlock_bh(&local_storage->lock); in bpf_inode_storage_free()
102 kfree_rcu(local_storage, rcu); in bpf_inode_storage_free()
Dbpf_task_storage.c75 struct bpf_local_storage *local_storage; in bpf_task_storage_free() local
82 local_storage = rcu_dereference(task->bpf_storage); in bpf_task_storage_free()
83 if (!local_storage) { in bpf_task_storage_free()
98 raw_spin_lock_irqsave(&local_storage->lock, flags); in bpf_task_storage_free()
99 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_task_storage_free()
105 local_storage, selem, false, false); in bpf_task_storage_free()
107 raw_spin_unlock_irqrestore(&local_storage->lock, flags); in bpf_task_storage_free()
115 kfree_rcu(local_storage, rcu); in bpf_task_storage_free()
DMakefile11 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o