]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: add bpf-program helpers
authorJulia Kartseva <hex@fb.com>
Wed, 16 Sep 2020 22:58:04 +0000 (15:58 -0700)
committerJulia Kartseva <hex@fb.com>
Sat, 10 Apr 2021 03:28:47 +0000 (20:28 -0700)
commitf23f0ead1f5ef135e4d271b5f9d8eab978665695
tree057f7f400b8df97a665d0d2b025d10a28cc31986
parenta442ccb4ebdbc3a9ff9d4504eb9724092149fd42
shared: add bpf-program helpers

Add helpers to:
- Create new BPFProgram instance from a path in bpf
filesystem and bpf attach type;
- Pin a program to bpf fs;
- Get BPF program ID by BPF program FD.
src/shared/bpf-program.c
src/shared/bpf-program.h