1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 3 #pragma once 4 5 #include <bpf/libbpf.h> 6 #include <stdio.h> 7 8 #include "fdset.h" 9 #include "macro.h" 10 11 bool bpf_can_link_program(struct bpf_program *prog); 12 13 int bpf_serialize_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link); 14 15 struct bpf_link *bpf_link_free(struct bpf_link *p); 16 DEFINE_TRIVIAL_CLEANUP_FUNC(struct bpf_link *, bpf_link_free); 17