bpf_mem_alloc
extern struct bpf_mem_alloc bpf_global_ma, bpf_global_percpu_ma;
int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu);
int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size);
void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma);
void bpf_mem_alloc_set_dtor(struct bpf_mem_alloc *ma,
void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size);
void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr);
void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma);
void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr);
void bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
void *bpf_mem_cache_alloc_flags(struct bpf_mem_alloc *ma, gfp_t flags);
struct bpf_mem_alloc bpf_global_ma;
static struct bpf_mem_alloc bpf_cpumask_ma;
struct bpf_mem_alloc *ma;
struct bpf_mem_alloc ma;
struct bpf_mem_alloc pcpu_ma;
p = bpf_mem_alloc(&bpf_global_ma, size);
return bpf_mem_alloc(&bpf_global_percpu_ma, size);
struct bpf_mem_alloc *ma;
kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes);
ctx = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_task_work_ctx));
state = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_dynptr_file_impl));
struct bpf_mem_alloc ma;
void bpf_mem_alloc_set_dtor(struct bpf_mem_alloc *ma, void (*dtor)(void *obj, void *ctx),
int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu)
int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg)
int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size)
static void check_leaked_objs(struct bpf_mem_alloc *ma)
static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma)
static void free_mem_alloc(struct bpf_mem_alloc *ma)
struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work);
static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress)
struct bpf_mem_alloc *copy;
void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma)
void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size)
void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr)
void notrace bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr)
void notrace *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma)
void notrace bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr)
void notrace bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr)
void notrace *bpf_mem_cache_alloc_flags(struct bpf_mem_alloc *ma, gfp_t flags)
kit->data = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_iter_task_vma_kern_data));
kit->css_it = bpf_mem_alloc(&bpf_global_ma, sizeof(struct css_task_iter));
struct bpf_mem_alloc bpf_global_percpu_ma;