Home
last modified time | relevance | path

Searched refs:bpf_mem_cache (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/bpf/
H A Dmemalloc.c81 struct bpf_mem_cache { struct
104 struct bpf_mem_cache *tgt; argument
125 struct bpf_mem_cache cache[NUM_CACHES]; argument
142 static void *__alloc(struct bpf_mem_cache *c, int node, gfp_t flags) in __alloc()
160 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg()
171 static void inc_active(struct bpf_mem_cache *c, unsigned long *flags) in inc_active()
189 static void dec_active(struct bpf_mem_cache *c, unsigned long *flags) in dec_active()
196 static void add_obj_to_free_list(struct bpf_mem_cache *c, void *obj) in add_obj_to_free_list()
207 static void alloc_bulk(struct bpf_mem_cache *c, int cnt, int node, bool atomic) in alloc_bulk()
265 static int free_all(struct bpf_mem_cache *c, struct llist_node *llnode, bool percpu) in free_all()
[all …]
/linux/include/linux/
H A Dbpf_mem_alloc.h8 struct bpf_mem_cache;
13 struct bpf_mem_cache __percpu *cache;