Lines Matching defs:bpf_map_ops
76 struct bpf_map_ops { struct
78 int (*map_alloc_check)(union bpf_attr *attr);
79 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
80 void (*map_release)(struct bpf_map *map, struct file *map_file);
81 void (*map_free)(struct bpf_map *map);
82 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
83 void (*map_release_uref)(struct bpf_map *map);
84 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
85 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
87 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
89 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
92 int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
95 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
99 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
100 long (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
101 long (*map_delete_elem)(struct bpf_map *map, void *key);
102 long (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
103 long (*map_pop_elem)(struct bpf_map *map, void *value);
104 long (*map_peek_elem)(struct bpf_map *map, void *value);
105 void *(*map_lookup_percpu_elem)(struct bpf_map *map, void *key, u32 cpu);
108 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
114 void (*map_fd_put_ptr)(struct bpf_map *map, void *ptr, bool need_defer);
115 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
116 u32 (*map_fd_sys_lookup_elem)(void *ptr);
117 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
119 int (*map_check_btf)(const struct bpf_map *map,
125 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
126 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
127 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
131 int (*map_direct_value_addr)(const struct bpf_map *map,
133 int (*map_direct_value_meta)(const struct bpf_map *map,
135 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
136 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
140 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
142 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
144 struct bpf_local_storage __rcu ** (*map_owner_storage_ptr)(void *owner);
147 long (*map_redirect)(struct bpf_map *map, u64 key, u64 flags);
158 bool (*map_meta_equal)(const struct bpf_map *meta0,
162 int (*map_set_for_each_callback_args)(struct bpf_verifier_env *env,
165 long (*map_for_each_callback)(struct bpf_map *map,
169 u64 (*map_mem_usage)(const struct bpf_map *map);
172 int *map_btf_id;
175 const struct bpf_iter_seq_info *iter_seq_info;