Lines Matching refs:bpf_map

21 struct bpf_map;
34 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
35 void (*map_release)(struct bpf_map *map, struct file *map_file);
36 void (*map_free)(struct bpf_map *map);
37 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
38 void (*map_release_uref)(struct bpf_map *map);
39 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
42 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
43 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
44 int (*map_delete_elem)(struct bpf_map *map, void *key);
45 int (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
46 int (*map_pop_elem)(struct bpf_map *map, void *value);
47 int (*map_peek_elem)(struct bpf_map *map, void *value);
50 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
53 u32 (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
55 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
57 int (*map_check_btf)(const struct bpf_map *map,
63 int (*map_direct_value_addr)(const struct bpf_map *map,
65 int (*map_direct_value_meta)(const struct bpf_map *map,
74 struct bpf_map { struct
79 struct bpf_map *inner_map_meta; argument
108 static inline bool map_value_has_spin_lock(const struct bpf_map *map) in map_value_has_spin_lock() argument
113 static inline void check_and_init_map_lock(struct bpf_map *map, void *dst) in check_and_init_map_lock()
122 static inline void copy_map_value(struct bpf_map *map, void *dst, void *src) in copy_map_value()
135 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src,
152 struct bpf_map map;
159 static inline struct bpf_offloaded_map *map_to_offmap(struct bpf_map *map) in map_to_offmap()
164 static inline bool bpf_map_offload_neutral(const struct bpf_map *map) in bpf_map_offload_neutral()
169 static inline bool bpf_map_support_seq_show(const struct bpf_map *map) in bpf_map_support_seq_show()
174 int map_check_no_btf(const struct bpf_map *map,
385 struct bpf_map **used_maps;
389 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE];
427 struct bpf_map map;
455 static inline u32 bpf_map_flags_to_cap(struct bpf_map *map) in bpf_map_flags_to_cap()
496 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
648 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock);
650 struct bpf_map *bpf_map_get_with_uref(u32 ufd);
651 struct bpf_map *__bpf_map_get(struct fd f);
652 struct bpf_map * __must_check bpf_map_inc(struct bpf_map *map, bool uref);
653 struct bpf_map * __must_check bpf_map_inc_not_zero(struct bpf_map *map,
655 void bpf_map_put_with_uref(struct bpf_map *map);
656 void bpf_map_put(struct bpf_map *map);
657 int bpf_map_charge_memlock(struct bpf_map *map, u32 pages);
658 void bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages);
665 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
669 int bpf_map_new_fd(struct bpf_map *map, int flags);
675 int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value);
676 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value);
677 int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value,
679 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value,
682 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value);
684 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
686 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
687 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
689 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
720 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key);
721 struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key);
722 void __dev_map_flush(struct bpf_map *map);
728 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key);
729 void __cpu_map_flush(struct bpf_map *map);
802 static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, in __dev_map_lookup_elem()
808 static inline struct net_device *__dev_map_hash_lookup_elem(struct bpf_map *map, in __dev_map_hash_lookup_elem()
814 static inline void __dev_map_flush(struct bpf_map *map) in __dev_map_flush()
838 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) in __cpu_map_lookup_elem()
843 static inline void __cpu_map_flush(struct bpf_map *map) in __cpu_map_flush()
895 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);
897 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value);
898 int bpf_map_offload_update_elem(struct bpf_map *map,
900 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key);
901 int bpf_map_offload_get_next_key(struct bpf_map *map,
904 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
924 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
929 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
930 void bpf_map_offload_map_free(struct bpf_map *map);
943 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
948 static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
953 static inline void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
959 int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog, u32 which);
962 static inline int sock_map_prog_update(struct bpf_map *map, in sock_map_prog_update()
977 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key);
978 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp,
980 void __xsk_map_flush(struct bpf_map *map);
983 static inline struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, in __xsk_map_lookup_elem()
989 static inline int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()
995 static inline void __xsk_map_flush(struct bpf_map *map) in __xsk_map_flush()
1002 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key,
1004 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
1012 static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, in bpf_fd_reuseport_array_lookup_elem()
1018 static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, in bpf_fd_reuseport_array_update_elem()