Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/
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);
/Linux-v6.1/kernel/bpf/
Dmemalloc.c357 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init()
435 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
443 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
455 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
461 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc()
463 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
489 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
605 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function
621 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free()
635 void notrace *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma) in bpf_mem_cache_alloc()
[all …]
Dhashtab.c88 struct bpf_mem_alloc ma;
89 struct bpf_mem_alloc pcpu_ma;