Lines Matching defs:bpf_map_ops

81 struct bpf_map_ops {  struct
83 int (*map_alloc_check)(union bpf_attr *attr);
84 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
85 void (*map_release)(struct bpf_map *map, struct file *map_file);
86 void (*map_free)(struct bpf_map *map);
87 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
88 void (*map_release_uref)(struct bpf_map *map);
89 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
90 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
92 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
94 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
97 int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
100 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
104 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
105 long (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
106 long (*map_delete_elem)(struct bpf_map *map, void *key);
107 long (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
108 long (*map_pop_elem)(struct bpf_map *map, void *value);
109 long (*map_peek_elem)(struct bpf_map *map, void *value);
110 void *(*map_lookup_percpu_elem)(struct bpf_map *map, void *key, u32 cpu);
113 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
119 void (*map_fd_put_ptr)(struct bpf_map *map, void *ptr, bool need_defer);
120 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
121 u32 (*map_fd_sys_lookup_elem)(void *ptr);
122 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
124 int (*map_check_btf)(const struct bpf_map *map,
130 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
131 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
132 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
136 int (*map_direct_value_addr)(const struct bpf_map *map,
138 int (*map_direct_value_meta)(const struct bpf_map *map,
140 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
141 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
143 unsigned long (*map_get_unmapped_area)(struct file *filep, unsigned long addr,
148 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
150 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
152 struct bpf_local_storage __rcu ** (*map_owner_storage_ptr)(void *owner);
155 long (*map_redirect)(struct bpf_map *map, u64 key, u64 flags);
166 bool (*map_meta_equal)(const struct bpf_map *meta0,
170 int (*map_set_for_each_callback_args)(struct bpf_verifier_env *env,
173 long (*map_for_each_callback)(struct bpf_map *map,
177 u64 (*map_mem_usage)(const struct bpf_map *map);
180 int *map_btf_id;
183 const struct bpf_iter_seq_info *iter_seq_info;