Home
last modified time | relevance | path

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

/linux-6.3-rc2/include/linux/
A Dbpf_mem_alloc.h11 struct bpf_mem_alloc { struct
17 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu); argument
18 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma);
21 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size);
22 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr);
25 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma);
26 void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr);
A Dbpf.h58 extern struct bpf_mem_alloc bpf_global_ma;
/linux-6.3-rc2/kernel/bpf/
A Dmemalloc.c377 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init()
456 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
464 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
484 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
490 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc()
492 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
518 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
634 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function
650 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free()
664 void notrace *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma) in bpf_mem_cache_alloc()
[all …]
A Dcpumask.c30 static struct bpf_mem_alloc bpf_cpumask_ma;
58 cpumask = bpf_mem_alloc(&bpf_cpumask_ma, sizeof(*cpumask)); in bpf_cpumask_create()
A Dhashtab.c88 struct bpf_mem_alloc ma;
89 struct bpf_mem_alloc pcpu_ma;
A Dhelpers.c1825 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl()
A Dcore.c66 struct bpf_mem_alloc bpf_global_ma;

Completed in 29 milliseconds