# BPF Documentation

_Peios Kernel / Internals / BPF_

> This directory contains documentation for the BPF (Berkeley Packet Filter) facility, with a focus on the extended BPF version (eBPF).

<a id="rst-bpf-documentation"></a>

This directory contains documentation for the BPF (Berkeley Packet Filter) facility, with a focus on the extended BPF version (eBPF).

This kernel side documentation is still work in progress. The Cilium project also maintains a [BPF and XDP Reference Guide](<https://docs.cilium.io/en/latest/bpf/>) that goes into great technical depth about the BPF Architecture.

- [eBPF verifier](</kernel/internals/bpf/verifier.md>)
- [libbpf](</kernel/internals/bpf/libbpf/index.md>)
- [BPF Standardization](</kernel/internals/bpf/standardization/index.md>)
- [BPF Type Format (BTF)](<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/bpf/btf.rst?id=9021cc14f7d98b4a1d2c932f52c5343d4d0f6b92>)
- [Frequently asked questions (FAQ)](</kernel/internals/bpf/faq.md>)
- [Syscall API](</kernel/internals/bpf/syscall-api.md>)
- [Helper functions](</kernel/internals/bpf/helpers.md>)
- [BPF Kernel Functions (kfuncs)](</kernel/internals/bpf/kfuncs.md>)
- [BPF cpumask kfuncs](</kernel/internals/bpf/cpumasks.md>)
- [BPF filesystem kfuncs](</kernel/internals/bpf/fs-kfuncs.md>)
- [Program Types](</kernel/internals/bpf/programs.md>)
- [BPF maps](</kernel/internals/bpf/maps.md>)
- [Running BPF programs from userspace](</kernel/internals/bpf/bpf-prog-run.md>)
- [Classic BPF vs eBPF](</kernel/internals/bpf/classic-vs-extended.md>)
- [BPF Iterators](</kernel/internals/bpf/bpf-iterators.md>)
- [BPF licensing](</kernel/internals/bpf/bpf-licensing.md>)
- [Testing and debugging BPF](</kernel/internals/bpf/test-debug.md>)
- [Contents](<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/bpf/clang-notes.rst?id=9021cc14f7d98b4a1d2c932f52c5343d4d0f6b92>)
- [Contents](<https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/bpf/linux-notes.rst?id=9021cc14f7d98b4a1d2c932f52c5343d4d0f6b92>)
- [Other](</kernel/internals/bpf/other.md>)
- [Redirect](</kernel/internals/bpf/redirect.md>)

<!-- Links: -->

<a id="rst-bpf-and-xdp-reference-guide"></a>
