linux/include/linux/filter.h
with linux/include/uapi/filter.h: information used to run the BPF programs themselves.
- from
- eBPF
- added
- 2026-10-10
- likes
- 0
similar
-
linux/include/linux/bpf.h git.kernel.org
with linux/include/uapi/bpf.h: definitions related to eBPF, to be used respectively in the kernel and to interface with userspace programs.
-
linux/net/core/filter.c git.kernel.org
Functions and eBPF helpers related to networking (TC, XDP etc.); also contains the code to migrate cBPF bytecode to eBPF (all cBPF programs are translated to eBPF in recent kernels).
-
linux/kernel/bpf/ git.kernel.org
This directory contains most of BPF-related code. In particular, those files are worth of interest:
-
linux/tools/testing/selftests/bpf git.kernel.org
In the kernel tree: Linux BPF selftests, with many eBPF programs.
-
-
linux/Documentation/networking/filter.rst git.kernel.org
eBPF specification (somewhat outdated; information should still be valid, but not exhaustive).
eBPF › The Code: “with linux/include/uapi/filter.h: information used to run the BPF programs themselves.”