Lines Matching defs:bpf_map_ops

82 struct bpf_map_ops {  struct
84 int (*map_alloc_check)(union bpf_attr *attr);
85 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
86 void (*map_release)(struct bpf_map *map, struct file *map_file);
87 void (*map_free)(struct bpf_map *map);
88 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
89 void (*map_release_uref)(struct bpf_map *map);
90 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
91 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
93 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
95 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
98 int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
101 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
105 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
106 long (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
107 long (*map_delete_elem)(struct bpf_map *map, void *key);
108 long (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
109 long (*map_pop_elem)(struct bpf_map *map, void *value);
110 long (*map_peek_elem)(struct bpf_map *map, void *value);
111 void *(*map_lookup_percpu_elem)(struct bpf_map *map, void *key, u32 cpu);
114 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
120 void (*map_fd_put_ptr)(struct bpf_map *map, void *ptr, bool need_defer);
121 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
122 u32 (*map_fd_sys_lookup_elem)(void *ptr);
123 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
125 int (*map_check_btf)(const struct bpf_map *map,
131 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
132 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
133 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
137 int (*map_direct_value_addr)(const struct bpf_map *map,
139 int (*map_direct_value_meta)(const struct bpf_map *map,
141 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
142 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
144 unsigned long (*map_get_unmapped_area)(struct file *filep, unsigned long addr,
149 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
151 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
153 struct bpf_local_storage __rcu ** (*map_owner_storage_ptr)(void *owner);
156 long (*map_redirect)(struct bpf_map *map, u64 key, u64 flags);
167 bool (*map_meta_equal)(const struct bpf_map *meta0,
171 int (*map_set_for_each_callback_args)(struct bpf_verifier_env *env,
174 long (*map_for_each_callback)(struct bpf_map *map,
178 u64 (*map_mem_usage)(const struct bpf_map *map);
181 int *map_btf_id;
184 const struct bpf_iter_seq_info *iter_seq_info;