Searched refs:bpf_mem_alloc (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/include/linux/ |
D | bpf_mem_alloc.h | 11 struct bpf_mem_alloc { struct 25 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu); 26 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma); 29 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size); 30 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr); 31 void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr); 34 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma); 35 void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr); 36 void bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr); 38 void *bpf_mem_cache_alloc_flags(struct bpf_mem_alloc *ma, gfp_t flags);
|
D | bpf_local_storage.h | 59 struct bpf_mem_alloc selem_ma; 60 struct bpf_mem_alloc storage_ma;
|
D | bpf.h | 58 extern struct bpf_mem_alloc bpf_global_ma;
|
/linux-6.6.21/kernel/bpf/ |
D | memalloc.c | 496 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init() 593 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs() 616 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier() 625 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc() 646 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred() 652 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc() 654 struct bpf_mem_alloc *copy; in destroy_mem_alloc() 677 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy() 817 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function 833 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free() [all …]
|
D | cpumask.c | 30 static struct bpf_mem_alloc bpf_cpumask_ma;
|
D | hashtab.c | 88 struct bpf_mem_alloc ma; 89 struct bpf_mem_alloc pcpu_ma;
|
D | helpers.c | 1910 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl()
|
D | core.c | 67 struct bpf_mem_alloc bpf_global_ma;
|