Lines Matching refs:bpf_map

38 struct bpf_map;
78 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
79 void (*map_release)(struct bpf_map *map, struct file *map_file);
80 void (*map_free)(struct bpf_map *map);
81 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
82 void (*map_release_uref)(struct bpf_map *map);
83 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
84 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
86 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
88 int (*map_lookup_and_delete_batch)(struct bpf_map *map,
91 int (*map_update_batch)(struct bpf_map *map, struct file *map_file,
94 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
98 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
99 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
100 int (*map_delete_elem)(struct bpf_map *map, void *key);
101 int (*map_push_elem)(struct bpf_map *map, void *value, u64 flags);
102 int (*map_pop_elem)(struct bpf_map *map, void *value);
103 int (*map_peek_elem)(struct bpf_map *map, void *value);
104 void *(*map_lookup_percpu_elem)(struct bpf_map *map, void *key, u32 cpu);
107 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
110 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
112 void (*map_seq_show_elem)(struct bpf_map *map, void *key,
114 int (*map_check_btf)(const struct bpf_map *map,
120 int (*map_poke_track)(struct bpf_map *map, struct bpf_prog_aux *aux);
121 void (*map_poke_untrack)(struct bpf_map *map, struct bpf_prog_aux *aux);
122 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old,
126 int (*map_direct_value_addr)(const struct bpf_map *map,
128 int (*map_direct_value_meta)(const struct bpf_map *map,
130 int (*map_mmap)(struct bpf_map *map, struct vm_area_struct *vma);
131 __poll_t (*map_poll)(struct bpf_map *map, struct file *filp,
142 int (*map_redirect)(struct bpf_map *map, u64 key, u64 flags);
153 bool (*map_meta_equal)(const struct bpf_map *meta0,
154 const struct bpf_map *meta1);
160 int (*map_for_each_callback)(struct bpf_map *map,
227 struct bpf_map { struct
232 struct bpf_map *inner_map_meta; argument
373 static inline void check_and_init_map_value(struct bpf_map *map, void *dst) in check_and_init_map_value()
420 static inline void copy_map_value(struct bpf_map *map, void *dst, void *src) in copy_map_value()
425 static inline void copy_map_value_long(struct bpf_map *map, void *dst, void *src) in copy_map_value_long()
450 static inline void zero_map_value(struct bpf_map *map, void *dst) in zero_map_value()
455 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src,
480 struct bpf_map map;
487 static inline struct bpf_offloaded_map *map_to_offmap(struct bpf_map *map) in map_to_offmap()
492 static inline bool bpf_map_offload_neutral(const struct bpf_map *map) in bpf_map_offload_neutral()
497 static inline bool bpf_map_support_seq_show(const struct bpf_map *map) in bpf_map_support_seq_show()
503 int map_check_no_btf(const struct bpf_map *map,
508 bool bpf_map_meta_equal(const struct bpf_map *meta0,
509 const struct bpf_map *meta1);
1259 struct bpf_map *map;
1325 struct bpf_map **used_maps;
1333 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE];
1409 struct bpf_map *map;
1488 int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key,
1542 static inline int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, in bpf_struct_ops_map_sys_lookup_elem()
1566 struct bpf_map map;
1596 static inline u32 bpf_map_flags_to_cap(struct bpf_map *map) in bpf_map_flags_to_cap()
1624 static inline bool map_type_contains_progs(struct bpf_map *map) in map_type_contains_progs()
1631 bool bpf_prog_map_compatible(struct bpf_map *map, const struct bpf_prog *fp);
1645 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
1881 void bpf_map_free_id(struct bpf_map *map);
1886 void bpf_map_free_record(struct bpf_map *map);
1892 struct bpf_map *bpf_map_get(u32 ufd);
1893 struct bpf_map *bpf_map_get_with_uref(u32 ufd);
1894 struct bpf_map *__bpf_map_get(struct fd f);
1895 void bpf_map_inc(struct bpf_map *map);
1896 void bpf_map_inc_with_uref(struct bpf_map *map);
1897 struct bpf_map * __must_check bpf_map_inc_not_zero(struct bpf_map *map);
1898 void bpf_map_put_with_uref(struct bpf_map *map);
1899 void bpf_map_put(struct bpf_map *map);
1903 bool bpf_map_write_active(const struct bpf_map *map);
1904 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
1905 int generic_map_lookup_batch(struct bpf_map *map,
1908 int generic_map_update_batch(struct bpf_map *map, struct file *map_file,
1911 int generic_map_delete_batch(struct bpf_map *map,
1914 struct bpf_map *bpf_map_get_curr_or_next(u32 *id);
1918 void *bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags,
1920 void *bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags);
1921 void *bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size,
1923 void __percpu *bpf_map_alloc_percpu(const struct bpf_map *map, size_t size,
1927 bpf_map_kmalloc_node(const struct bpf_map *map, size_t size, gfp_t flags, in bpf_map_kmalloc_node()
1934 bpf_map_kzalloc(const struct bpf_map *map, size_t size, gfp_t flags) in bpf_map_kzalloc()
1940 bpf_map_kvcalloc(struct bpf_map *map, size_t n, size_t size, gfp_t flags) in bpf_map_kvcalloc()
1946 bpf_map_alloc_percpu(const struct bpf_map *map, size_t size, size_t align, in bpf_map_alloc_percpu()
1975 int bpf_map_new_fd(struct bpf_map *map, int flags);
2021 struct bpf_map *map;
2072 __bpf_md_ptr(struct bpf_map *, map);
2096 int bpf_percpu_hash_copy(struct bpf_map *map, void *key, void *value);
2097 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value);
2098 int bpf_percpu_hash_update(struct bpf_map *map, void *key, void *value,
2100 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value,
2103 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value);
2105 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
2107 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
2108 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
2110 int bpf_fd_htab_map_lookup_elem(struct bpf_map *map, void *key, u32 *value);
2137 struct bpf_map *map, bool exclude_ingress);
2141 struct bpf_prog *xdp_prog, struct bpf_map *map,
2362 struct bpf_map *map, bool exclude_ingress) in dev_map_enqueue_multi()
2378 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi()
2442 static inline void bpf_map_put(struct bpf_map *map) in bpf_map_put()
2510 struct bpf_map **used_maps, u32 len);
2519 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);
2521 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value);
2522 int bpf_map_offload_update_elem(struct bpf_map *map,
2524 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key);
2525 int bpf_map_offload_get_next_key(struct bpf_map *map,
2528 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
2562 static inline bool bpf_map_is_offloaded(struct bpf_map *map) in bpf_map_is_offloaded()
2567 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
2568 void bpf_map_offload_map_free(struct bpf_map *map);
2575 int sock_map_update_elem_sys(struct bpf_map *map, void *key, void *value, u64 flags);
2626 static inline bool bpf_map_is_offloaded(struct bpf_map *map) in bpf_map_is_offloaded()
2631 static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
2636 static inline void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
2660 static inline int sock_map_update_elem_sys(struct bpf_map *map, void *key, void *value, in sock_map_update_elem_sys()
2676 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key,
2678 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
2686 static inline int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, in bpf_fd_reuseport_array_lookup_elem()
2692 static inline int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, in bpf_fd_reuseport_array_update_elem()