bpf-link: prefix function names with "bpf_"

we generally do this for all bpf functions, do so here too.
This commit is contained in:
Lennart Poettering
2021-06-08 22:02:35 +02:00
parent cd09a5f3c1
commit d63a3d350f
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
#include "bpf-link.h"
#include "serialize.h"
bool can_link_bpf_program(struct bpf_program *prog) {
bool bpf_can_link_program(struct bpf_program *prog) {
_cleanup_(bpf_link_freep) struct bpf_link *link = NULL;
assert(prog);
@@ -19,7 +19,7 @@ bool can_link_bpf_program(struct bpf_program *prog) {
return sym_libbpf_get_error(link) == -EBADF;
}
int serialize_bpf_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link) {
int bpf_serialize_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link) {
assert(key);
if (!link)
+2 -2
View File
@@ -8,9 +8,9 @@
#include "fdset.h"
#include "macro.h"
bool can_link_bpf_program(struct bpf_program *prog);
bool bpf_can_link_program(struct bpf_program *prog);
int serialize_bpf_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link);
int bpf_serialize_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link);
struct bpf_link *bpf_link_free(struct bpf_link *p);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct bpf_link *, bpf_link_free);