Lines Matching refs:bpf_map

31 struct bpf_map;
59 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
60 void (*map_release)(struct bpf_map *map, struct file *map_file);
61 void (*map_free)(struct bpf_map *map);
62 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
63 void (*map_release_uref)(struct bpf_map *map);
64 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
65 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
67 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
70 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr,
72 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
76 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
77 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
78 int (*map_delete_elem)(struct bpf_map *map, void *key);
79 int (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
80 int (*map_pop_elem)(struct bpf_map *map, void *value);
81 int (*map_peek_elem)(struct bpf_map *map, void *value);
84 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
87 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
89 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
91 int (*map_check_btf)(const struct bpf_map *map,
97 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
98 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
99 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
103 int (*map_direct_value_addr)(const struct bpf_map *map,
105 int (*map_direct_value_meta)(const struct bpf_map *map,
107 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
108 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
127 bool (*map_meta_equal)(const struct bpf_map *meta0,
128 const struct bpf_map *meta1);
146 struct bpf_map { struct
151 struct bpf_map *inner_map_meta; argument
190 static inline bool map_value_has_spin_lock(const struct bpf_map *map) in map_value_has_spin_lock() argument
195 static inline void check_and_init_map_lock(struct bpf_map *map, void *dst) in check_and_init_map_lock()
204 static inline void copy_map_value(struct bpf_map *map, void *dst, void *src) in copy_map_value()
217 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src,
237 struct bpf_map map;
244 static inline struct bpf_offloaded_map *map_to_offmap(struct bpf_map *map) in map_to_offmap()
249 static inline bool bpf_map_offload_neutral(const struct bpf_map *map) in bpf_map_offload_neutral()
254 static inline bool bpf_map_support_seq_show(const struct bpf_map *map) in bpf_map_support_seq_show()
260 int map_check_no_btf(const struct bpf_map *map,
265 bool bpf_map_meta_equal(const struct bpf_map *meta0,
266 const struct bpf_map *meta1);
775 struct bpf_map *map;
829 struct bpf_map **used_maps;
834 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE];
888 struct bpf_map *map;
949 int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key,
982 static inline int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, in bpf_struct_ops_map_sys_lookup_elem()
991 struct bpf_map map;
1013 static inline u32 bpf_map_flags_to_cap(struct bpf_map *map) in bpf_map_flags_to_cap()
1055 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
1252 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock);
1254 struct bpf_map *bpf_map_get(u32 ufd);
1255 struct bpf_map *bpf_map_get_with_uref(u32 ufd);
1256 struct bpf_map *__bpf_map_get(struct fd f);
1257 void bpf_map_inc(struct bpf_map *map);
1258 void bpf_map_inc_with_uref(struct bpf_map *map);
1259 struct bpf_map * __must_check bpf_map_inc_not_zero(struct bpf_map *map);
1260 void bpf_map_put_with_uref(struct bpf_map *map);
1261 void bpf_map_put(struct bpf_map *map);
1262 int bpf_map_charge_memlock(struct bpf_map *map, u32 pages);
1263 void bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages);
1271 bool bpf_map_write_active(const struct bpf_map *map);
1272 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
1273 int generic_map_lookup_batch(struct bpf_map *map,
1276 int generic_map_update_batch(struct bpf_map *map,
1279 int generic_map_delete_batch(struct bpf_map *map,
1282 struct bpf_map *bpf_map_get_curr_or_next(u32 *id);
1312 int bpf_map_new_fd(struct bpf_map *map, int flags);
1335 struct bpf_map *map;
1367 __bpf_md_ptr(struct bpf_map *, map);
1385 int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value);
1386 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value);
1387 int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value,
1389 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value,
1392 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value);
1394 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
1396 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
1397 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
1399 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
1435 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key);
1436 struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key);
1444 bool dev_map_can_have_prog(struct bpf_map *map);
1446 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key);
1450 bool cpu_map_prog_allowed(struct bpf_map *map);
1590 static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, in __dev_map_lookup_elem()
1596 static inline struct net_device *__dev_map_hash_lookup_elem(struct bpf_map *map, in __dev_map_hash_lookup_elem()
1601 static inline bool dev_map_can_have_prog(struct bpf_map *map) in dev_map_can_have_prog()
1637 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) in __cpu_map_lookup_elem()
1653 static inline bool cpu_map_prog_allowed(struct bpf_map *map) in cpu_map_prog_allowed()
1699 static inline void bpf_map_put(struct bpf_map *map) in bpf_map_put()
1728 struct bpf_map **used_maps, u32 len);
1737 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);
1739 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value);
1740 int bpf_map_offload_update_elem(struct bpf_map *map,
1742 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key);
1743 int bpf_map_offload_get_next_key(struct bpf_map *map,
1746 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
1768 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
1773 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
1774 void bpf_map_offload_map_free(struct bpf_map *map);
1787 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
1792 static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
1797 static inline void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
1803 int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog,
1807 int sock_map_update_elem_sys(struct bpf_map *map, void *key, void *value, u64 flags);
1811 static inline int sock_map_prog_update(struct bpf_map *map, in sock_map_prog_update()
1830 static inline int sock_map_update_elem_sys(struct bpf_map *map, void *key, void *value, in sock_map_update_elem_sys()
1839 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key,
1841 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
1849 static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, in bpf_fd_reuseport_array_lookup_elem()
1855 static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, in bpf_fd_reuseport_array_update_elem()