Lines Matching refs:bpf_map
343 struct bpf_map;
345 LIBBPF_API struct bpf_link *bpf_map__attach_struct_ops(struct bpf_map *map);
485 LIBBPF_API struct bpf_map *
495 LIBBPF_API struct bpf_map *
498 LIBBPF_API struct bpf_map *
499 bpf_map__next(const struct bpf_map *map, const struct bpf_object *obj);
506 LIBBPF_API struct bpf_map *
507 bpf_map__prev(const struct bpf_map *map, const struct bpf_object *obj);
510 LIBBPF_API int bpf_map__fd(const struct bpf_map *map);
511 LIBBPF_API int bpf_map__reuse_fd(struct bpf_map *map, int fd);
513 LIBBPF_API const struct bpf_map_def *bpf_map__def(const struct bpf_map *map);
515 LIBBPF_API const char *bpf_map__name(const struct bpf_map *map);
517 LIBBPF_API enum bpf_map_type bpf_map__type(const struct bpf_map *map);
518 LIBBPF_API int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type);
520 LIBBPF_API __u32 bpf_map__max_entries(const struct bpf_map *map);
521 LIBBPF_API int bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries);
522 LIBBPF_API int bpf_map__resize(struct bpf_map *map, __u32 max_entries);
524 LIBBPF_API __u32 bpf_map__map_flags(const struct bpf_map *map);
525 LIBBPF_API int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags);
527 LIBBPF_API __u32 bpf_map__numa_node(const struct bpf_map *map);
528 LIBBPF_API int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node);
530 LIBBPF_API __u32 bpf_map__key_size(const struct bpf_map *map);
531 LIBBPF_API int bpf_map__set_key_size(struct bpf_map *map, __u32 size);
533 LIBBPF_API __u32 bpf_map__value_size(const struct bpf_map *map);
534 LIBBPF_API int bpf_map__set_value_size(struct bpf_map *map, __u32 size);
536 LIBBPF_API __u32 bpf_map__btf_key_type_id(const struct bpf_map *map);
537 LIBBPF_API __u32 bpf_map__btf_value_type_id(const struct bpf_map *map);
539 LIBBPF_API __u32 bpf_map__ifindex(const struct bpf_map *map);
540 LIBBPF_API int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex);
542 typedef void (*bpf_map_clear_priv_t)(struct bpf_map *, void *);
543 LIBBPF_API int bpf_map__set_priv(struct bpf_map *map, void *priv,
545 LIBBPF_API void *bpf_map__priv(const struct bpf_map *map);
546 LIBBPF_API int bpf_map__set_initial_value(struct bpf_map *map,
548 LIBBPF_API const void *bpf_map__initial_value(struct bpf_map *map, size_t *psize);
549 LIBBPF_API bool bpf_map__is_offload_neutral(const struct bpf_map *map);
550 LIBBPF_API bool bpf_map__is_internal(const struct bpf_map *map);
551 LIBBPF_API int bpf_map__set_pin_path(struct bpf_map *map, const char *path);
552 LIBBPF_API const char *bpf_map__get_pin_path(const struct bpf_map *map);
553 LIBBPF_API const char *bpf_map__pin_path(const struct bpf_map *map);
554 LIBBPF_API bool bpf_map__is_pinned(const struct bpf_map *map);
555 LIBBPF_API int bpf_map__pin(struct bpf_map *map, const char *path);
556 LIBBPF_API int bpf_map__unpin(struct bpf_map *map, const char *path);
558 LIBBPF_API int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd);
559 LIBBPF_API struct bpf_map *bpf_map__inner_map(struct bpf_map *map);
843 struct bpf_map **map;