Lines Matching defs:bpf_map_ops

72 struct bpf_map_ops {  struct
74 int (*map_alloc_check)(union bpf_attr *attr);
75 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
76 void (*map_release)(struct bpf_map *map, struct file *map_file);
77 void (*map_free)(struct bpf_map *map);
78 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
79 void (*map_release_uref)(struct bpf_map *map);
80 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
81 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
83 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
85 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
88 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr,
90 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
94 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
95 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
96 int (*map_delete_elem)(struct bpf_map *map, void *key);
97 int (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
98 int (*map_pop_elem)(struct bpf_map *map, void *value);
99 int (*map_peek_elem)(struct bpf_map *map, void *value);
100 void *(*map_lookup_percpu_elem)(struct bpf_map *map, void *key, u32 cpu);
103 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
105 void (*map_fd_put_ptr)(void *ptr);
106 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
107 u32 (*map_fd_sys_lookup_elem)(void *ptr);
108 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
110 int (*map_check_btf)(const struct bpf_map *map,
116 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
117 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
118 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
122 int (*map_direct_value_addr)(const struct bpf_map *map,
124 int (*map_direct_value_meta)(const struct bpf_map *map,
126 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
127 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
131 int (*map_local_storage_charge)(struct bpf_local_storage_map *smap,
133 void (*map_local_storage_uncharge)(struct bpf_local_storage_map *smap,
135 struct bpf_local_storage __rcu ** (*map_owner_storage_ptr)(void *owner);
138 int (*map_redirect)(struct bpf_map *map, u32 ifindex, u64 flags);
149 bool (*map_meta_equal)(const struct bpf_map *meta0,
153 int (*map_set_for_each_callback_args)(struct bpf_verifier_env *env,
156 int (*map_for_each_callback)(struct bpf_map *map,
161 int *map_btf_id;
164 const struct bpf_iter_seq_info *iter_seq_info;