/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LIBBPF_HELPERS_H #define __LIBBPF_HELPERS_H #include int load_obj_file(struct bpf_prog_load_attr *attr, struct bpf_object **obj, const char *objfile, bool user_set); int bpf_map_get_fd_by_name(const char *name); int bpf_map_get_fd_by_path(const char *path); int bpf_map_get_fd(__u32 id, const char *path, const char *name, const char *desc); int bpf_prog_get_fd_by_path(const char *path); int bpf_prog_get_fd(__u32 id, const char *path, const char *name, const char *desc); int attach_to_dev_generic(int idx, int prog_fd, const char *dev); int detach_from_dev_generic(int idx, const char *dev); int attach_to_dev(int idx, int prog_fd, const char *dev); int detach_from_dev(int idx, const char *dev); int attach_to_dev_tx(int idx, int prog_fd, const char *dev); int detach_from_dev_tx(int idx, const char *dev); #endif