# eBPF Userspace API

_Peios Kernel / Userspace interfaces / System and device interfaces / eBPF_

> eBPF is a kernel mechanism to provide a sandboxed runtime environment in the Linux kernel for runtime extension and instrumentation without changing kernel source code or loading kernel modules. eBPF programs can be attached to various…

<a id="rst-ebpf-userspace-api"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

eBPF is a kernel mechanism to provide a sandboxed runtime environment in the Linux kernel for runtime extension and instrumentation without changing kernel source code or loading kernel modules. eBPF programs can be attached to various kernel subsystems, including networking, tracing and Linux security modules (LSM).

For internal kernel documentation on eBPF, see [Documentation/bpf/index.rst](/kernel/internals/bpf/index.md).

- [eBPF Syscall](</kernel/userspace/userspace-api/ebpf/syscall.md>)
