Home
last modified time | relevance | path

Searched refs:bpf_mem_alloc (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.6/include/linux/
Dbpf_mem_alloc.h11 struct bpf_mem_alloc { struct
24 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu);
25 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma);
28 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size);
29 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr);
30 void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
33 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma);
34 void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr);
35 void bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
37 void *bpf_mem_cache_alloc_flags(struct bpf_mem_alloc *ma, gfp_t flags);
Dbpf_local_storage.h59 struct bpf_mem_alloc selem_ma;
60 struct bpf_mem_alloc storage_ma;
Dbpf.h58 extern struct bpf_mem_alloc bpf_global_ma;
/Linux-v6.6/kernel/bpf/
Dmemalloc.c521 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init()
633 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs()
656 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
665 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
686 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
692 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc()
694 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
717 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
857 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function
873 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free()
[all …]
Dcpumask.c30 static struct bpf_mem_alloc bpf_cpumask_ma;
Dhashtab.c88 struct bpf_mem_alloc ma;
89 struct bpf_mem_alloc pcpu_ma;
Dhelpers.c1897 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl()
Dcore.c67 struct bpf_mem_alloc bpf_global_ma;