Lines Matching refs:bpf_map

23 struct bpf_map;
32 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
33 void (*map_release)(struct bpf_map *map, struct file *map_file);
34 void (*map_free)(struct bpf_map *map);
35 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
36 void (*map_release_uref)(struct bpf_map *map);
39 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
40 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
41 int (*map_delete_elem)(struct bpf_map *map, void *key);
44 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
47 u32 (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
49 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
51 int (*map_check_btf)(const struct bpf_map *map,
56 struct bpf_map { struct
61 struct bpf_map *inner_map_meta; argument
103 struct bpf_map map; argument
110 static inline struct bpf_offloaded_map *map_to_offmap(struct bpf_map *map) in map_to_offmap()
115 static inline bool bpf_map_offload_neutral(const struct bpf_map *map) in bpf_map_offload_neutral()
120 static inline bool bpf_map_support_seq_show(const struct bpf_map *map) in bpf_map_support_seq_show()
125 int map_check_no_btf(const struct bpf_map *map,
287 struct bpf_map **used_maps;
291 struct bpf_map *cgroup_storage;
304 struct bpf_map map;
338 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
444 void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock);
446 struct bpf_map *bpf_map_get_with_uref(u32 ufd);
447 struct bpf_map *__bpf_map_get(struct fd f);
448 struct bpf_map * __must_check bpf_map_inc(struct bpf_map *map, bool uref);
449 void bpf_map_put_with_uref(struct bpf_map *map);
450 void bpf_map_put(struct bpf_map *map);
452 int bpf_map_charge_memlock(struct bpf_map *map, u32 pages);
453 void bpf_map_uncharge_memlock(struct bpf_map *map, u32 pages);
456 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
460 int bpf_map_new_fd(struct bpf_map *map, int flags);
466 int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value);
467 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value);
468 int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value,
470 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value,
473 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value);
475 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
477 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
478 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
480 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
510 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key);
511 void __dev_map_insert_ctx(struct bpf_map *map, u32 index);
512 void __dev_map_flush(struct bpf_map *map);
518 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key);
519 void __cpu_map_insert_ctx(struct bpf_map *map, u32 index);
520 void __cpu_map_flush(struct bpf_map *map);
586 static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, in __dev_map_lookup_elem()
592 static inline void __dev_map_insert_ctx(struct bpf_map *map, u32 index) in __dev_map_insert_ctx()
596 static inline void __dev_map_flush(struct bpf_map *map) in __dev_map_flush()
620 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) in __cpu_map_lookup_elem()
625 static inline void __cpu_map_insert_ctx(struct bpf_map *map, u32 index) in __cpu_map_insert_ctx()
629 static inline void __cpu_map_flush(struct bpf_map *map) in __cpu_map_flush()
660 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);
662 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value);
663 int bpf_map_offload_update_elem(struct bpf_map *map,
665 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key);
666 int bpf_map_offload_get_next_key(struct bpf_map *map,
669 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
687 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
692 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
693 void bpf_map_offload_map_free(struct bpf_map *map);
706 static inline bool bpf_map_is_dev_bound(struct bpf_map *map) in bpf_map_is_dev_bound()
711 static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
716 static inline void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
722 struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key);
723 struct sock *__sock_hash_lookup_elem(struct bpf_map *map, void *key);
724 int sock_map_prog(struct bpf_map *map, struct bpf_prog *prog, u32 type);
728 static inline struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key) in __sock_map_lookup_elem()
733 static inline struct sock *__sock_hash_lookup_elem(struct bpf_map *map, in __sock_hash_lookup_elem()
739 static inline int sock_map_prog(struct bpf_map *map, in sock_map_prog()
755 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key);
756 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp,
758 void __xsk_map_flush(struct bpf_map *map);
761 static inline struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, in __xsk_map_lookup_elem()
767 static inline int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()
773 static inline void __xsk_map_flush(struct bpf_map *map) in __xsk_map_flush()
780 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key,
782 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
790 static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, in bpf_fd_reuseport_array_lookup_elem()
796 static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, in bpf_fd_reuseport_array_update_elem()