# Internals

> How the Peios kernel coordinates execution, manages resources, and implements its core subsystems.

All of Internals as one markdown file: [/kernel/internals/print.md](/kernel/internals/print.md)

- [LCS](/kernel/internals/lcs.md): Peios kernel lcs documentation.
- [StrataFS](/kernel/internals/stratafs.md): Peios kernel stratafs documentation.
- [KACS](/kernel/internals/kacs.md): Peios kernel kacs documentation.

## Start here

- [Understanding the kernel](/kernel/internals/start-here/overview.md): A reading path through the kernel implementation.

## Locking

- [Locking](/kernel/internals/locking/overview.md): Find the locking primitives, usage rules, implementation details, and diagnostic tools used inside the kernel.
- [Lock types and their rules](/kernel/internals/locking/locktypes.md): Sleeping, spinning, and CPU-local locks, including PREEMPT_RT behaviour and nesting rules.
- [Spinlocks](/kernel/internals/locking/spinlocks.md): Using spinlocks and reader/writer spinlocks to protect shared kernel data.
- [Mutexes](/kernel/internals/locking/mutex-design.md): Mutex semantics, implementation paths, debugging, and differences from semaphores.
- [RT-mutexes and priority inheritance](/kernel/internals/locking/rt-mutex.md): Priority inheritance in RT-mutexes, including ownership and waiter states.
- [RT-mutex implementation](/kernel/internals/locking/rt-mutex-design.md): Priority-inheritance chains, waiter trees, and the RT-mutex locking algorithm.
- [Wound/wait mutexes](/kernel/internals/locking/ww-mutex-design.md): Avoiding deadlocks when acquiring multiple buffer locks with wait/die and wound/wait algorithms.
- [Sequence counters and sequential locks](/kernel/internals/locking/seqlock.md): Sequence counters, latch counters, sequential locks, and their API reference.
- [Per-CPU reader/writer semaphores](/kernel/internals/locking/percpu-rw-semaphore.md): The per-CPU reader/writer semaphore and its read-side and write-side trade-offs.
- [Hardware spinlocks](/kernel/internals/locking/hwspinlock.md): Requesting and using hardware spinlocks, with driver implementation guidance.
- [Locking and preemption](/kernel/internals/locking/preempt-locking.md): Protecting per-CPU data, processor state, and critical sections in a preemptible kernel.
- [Priority-inheritance futexes](/kernel/internals/locking/pi-futex.md): The motivation and kernel support for lightweight priority-inheritance futexes.
- [Requeueing priority-inheritance futexes](/kernel/internals/locking/futex-requeue-pi.md): Requeue operations and proxy locking for priority-inheritance futexes.
- [Robust futexes](/kernel/internals/locking/robust-futexes.md): Recovering userspace locks when their owner exits, using robust futex lists.
- [Robust futex ABI](/kernel/internals/locking/robust-futex-abi.md): The userspace list layout and kernel interface for robust futex recovery.
- [Lock dependency validation](/kernel/internals/locking/lockdep-design.md): Lock classes, dependency checks, nesting, and lockdep annotations.
- [Lock statistics](/kernel/internals/locking/lockstat.md): Collecting and interpreting lock contention and hold-time statistics.
- [Lock torture tests](/kernel/internals/locking/locktorture.md): Running locking stress tests and selecting their module parameters.

## Scheduling

- [Scheduler](/kernel/internals/scheduler/index.md): Reference for Scheduler.
- [Completions - "wait for completion" barrier APIs](/kernel/internals/scheduler/completion.md): If you have one or more threads that must wait for some kernel activity to have reached a point or a specific state, completions can provide a race-free solution to this problem. Semantically they are somewhat like a pthread_barrier() and…
- [membarrier() System Call](/kernel/internals/scheduler/membarrier.md): The commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after coming from user-space, before updating rq->curr. This barrier is implied by the sequence…
- [CPU Scheduler implementation hints for architecture specific code](/kernel/internals/scheduler/sched-arch.md): Nick Piggin, 2005
- [CFS Bandwidth Control](/kernel/internals/scheduler/sched-bwc.md): CFS bandwidth control is a CONFIG_FAIR_GROUP_SCHED extension which allows the specification of the maximum CPU bandwidth available to a group or hierarchy.
- [Capacity Aware Scheduling](/kernel/internals/scheduler/sched-capacity.md): Conventional, homogeneous SMP platforms are composed of purely identical CPUs. Heterogeneous platforms on the other hand are composed of CPUs with different performance characteristics - on such platforms, not all CPUs can be considered…
- [Deadline Task Scheduling](/kernel/internals/scheduler/sched-deadline.md): Fiddling with these settings can result in an unpredictable or even unstable system behavior. As for -rt (group) scheduling, it is assumed that root users know what they're doing.
- [Scheduler debugfs](/kernel/internals/scheduler/sched-debug.md): Booting a kernel with debugfs enabled will give access to scheduler specific debug files under /sys/kernel/debug/sched. Some of those files are described below.
- [CFS Scheduler](/kernel/internals/scheduler/sched-design-cfs.md): CFS stands for "Completely Fair Scheduler," and is the "desktop" process scheduler implemented by Ingo Molnar and merged in Linux 2.6.23. When originally merged, it was the replacement for the previous vanilla scheduler's SCHED_OTHER…
- [Scheduler Domains](/kernel/internals/scheduler/sched-domains.md): Each CPU has a "base" scheduling domain (struct sched_domain). The domain hierarchy is built from these base domains via the ->parent pointer. ->parent MUST be NULL terminated, and domain structures should be per-CPU as they are locklessly…
- [EEVDF Scheduler](/kernel/internals/scheduler/sched-eevdf.md): The "Earliest Eligible Virtual Deadline First" (EEVDF) was first introduced in a scientific publication in 1995 [1]. The Linux kernel began transitioning to EEVDF in version 6.6 (as a new option in 2024), moving away from the earlier…
- [Energy Aware Scheduling](/kernel/internals/scheduler/sched-energy.md): Energy Aware Scheduling (or EAS) gives the scheduler the ability to predict the impact of its decisions on the energy consumed by CPUs. EAS relies on an Energy Model (EM) of the CPUs to select an energy efficient CPU for each task, with a…
- [Extensible Scheduler Class](/kernel/internals/scheduler/sched-ext.md): sched_ext is a scheduler class whose behavior can be defined by a set of BPF programs - the BPF scheduler.
- [Scheduler Nice Design](/kernel/internals/scheduler/sched-nice-design.md): This document explains the thinking about the revamped and streamlined nice-levels implementation in the new Linux scheduler.
- [Real-Time group scheduling](/kernel/internals/scheduler/sched-rt-group.md): Fiddling with these settings can result in an unstable system, the knobs are root only and assumes root knows what he is doing.
- [Scheduler Statistics](/kernel/internals/scheduler/sched-stats.md): Version 17 of schedstats removed 'lb_imbalance' field as it has no significance anymore and instead added more relevant fields namely 'lb_imbalance_load', 'lb_imbalance_util', 'lb_imbalance_task' and 'lb_imbalance_misfit'. The domain field…
- [Utilization Clamping](/kernel/internals/scheduler/sched-util-clamp.md): Utilization clamping, also known as util clamp or uclamp, is a scheduler feature that allows user space to help in managing the performance requirement of tasks. It was introduced in v5.3 release. The CGroup support was merged in v5.4.
- [Schedutil](/kernel/internals/scheduler/schedutil.md): With PELT we track some metrics across the various scheduler entities, from individual tasks to task-group slices to CPU runqueues. As the basis for this we use an Exponentially Weighted Moving Average (EWMA), each period (1024us) is…
- [Scheduler pelt c program](/kernel/internals/scheduler/text-files.md): Reference for Scheduler pelt c program.

## Read-copy-update (RCU)

- [RCU Handbook](/kernel/internals/rcu/index.md): Reference for RCU Handbook.
- [Using RCU to Protect Dynamic NMI Handlers](/kernel/internals/rcu/nmi-rcu.md): Although RCU is usually used to protect read-mostly data structures, it is possible to use RCU to provide dynamic non-maskable interrupt handlers, as well as dynamic irq handlers. This document describes how to do this, drawing loosely…
- [RCU on Uniprocessor Systems](/kernel/internals/rcu/up.md): A common misconception is that, on UP systems, the call_rcu() primitive may immediately invoke its function. The basis of this misconception is that since there is only one CPU, it should not be necessary to wait for anything else to get…
- [Review Checklist for RCU Patches](/kernel/internals/rcu/checklist.md): This document contains a checklist for producing and reviewing patches that make use of RCU. Violating any of the rules listed below will result in the same sorts of problems that leaving out a locking primitive would cause. This list is…
- [Using RCU to Protect Read-Mostly Linked Lists](/kernel/internals/rcu/listrcu.md): One of the most common uses of RCU is protecting read-mostly linked lists (struct list_head in list.h). One big advantage of this approach is that all of the required memory ordering is provided by the list macros. This document describes…
- [Lockdep-RCU Splat](/kernel/internals/rcu/lockdep-splat.md): Lockdep-RCU was added to the Linux kernel in early 2010 (http://lwn.net/Articles/371986/). This facility checks for some common misuses of the RCU API, most notably using one of the rcu_dereference() family to access an RCU-protected…
- [RCU and lockdep checking](/kernel/internals/rcu/lockdep.md): All flavors of RCU have lockdep checking available, so that lockdep is aware of when each task enters and leaves any flavor of RCU read-side critical section. Each flavor of RCU is tracked separately (but note that this is not the case in…
- [RCU Concepts](/kernel/internals/rcu/rcu.md): The basic idea behind RCU (read-copy update) is to split destructive operations into two parts, one that prevents anyone from seeing the data item being destroyed, and one that actually carries out the destruction. A "grace period" must…
- [PROPER CARE AND FEEDING OF RETURN VALUES FROM rcu_dereference()](/kernel/internals/rcu/rcu-dereference.md): Proper care and feeding of address and data dependencies is critically important to correct use of things like RCU. To this end, the pointers returned from the rcu_dereference() family of primitives carry address and data dependencies.…
- [RCU and Unloadable Modules](/kernel/internals/rcu/rcubarrier.md): [Originally published in LWN Jan. 14, 2007: http://lwn.net/Articles/217484/]
- [Using RCU hlist_nulls to protect list and objects](/kernel/internals/rcu/rculist-nulls.md): This section describes how to use hlist_nulls to protect read-mostly linked lists and objects using SLAB_TYPESAFE_BY_RCU allocations.
- [Reference-count design for elements of lists/arrays protected by RCU](/kernel/internals/rcu/rcuref.md): Please note that the percpu-ref feature is likely your first stop if you need to combine reference counts and RCU. Please see include/linux/percpu-refcount.h for more information. However, in those unusual cases where percpu-ref would…
- [Using RCU's CPU Stall Detector](/kernel/internals/rcu/stallwarn.md): This document first discusses what sorts of issues RCU's CPU stall detector can locate, and then discusses kernel parameters and Kconfig options that can be used to fine-tune the detector's operation. Finally, this document explains the…
- [RCU Torture Test Operation](/kernel/internals/rcu/torture.md): The CONFIG_RCU_TORTURE_TEST config option is available for all RCU implementations. It creates an rcutorture kernel module that can be loaded to run a torture test. The test periodically outputs status messages via printk(), which can be…
- [What is RCU?  --  "Read, Copy, Update"](/kernel/internals/rcu/whatisrcu.md): Please note that the "What is RCU?" LWN series is an excellent place to start learning about RCU:
- [A Tour Through TREE_RCU's Data Structures [LWN.net]](/kernel/internals/rcu/design-data-structures/data-structures.md): December 18, 2016
- [A Tour Through TREE_RCU's Expedited Grace Periods](/kernel/internals/rcu/design-expedited-grace-periods/expedited-grace-periods.md): This document describes RCU's expedited grace periods. Unlike RCU's normal grace periods, which accept long latencies to attain high efficiency and minimal disturbance, expedited grace periods accept lower efficiency and significant…
- [A Tour Through TREE_RCU's Grace-Period Memory Ordering](/kernel/internals/rcu/design-memory-ordering/tree-rcu-memory-ordering.md): August 8, 2017
- [A Tour Through RCU's Requirements](/kernel/internals/rcu/design-requirements/requirements.md): Copyright IBM Corporation, 2015
- [Read the Fscking Papers!](/kernel/internals/rcu/rtfp.md): Kernel reference: Read the Fscking Papers!.

## KMES

- [Overview](/kernel/internals/kmes/overview.md): KMES is the sole event emission path in Peios, used by kernel subsystems and userspace alike, and the terms this chapter uses for it.
- [Event Model](/kernel/internals/kmes/event-model.md): What an event is on the wire — the packed header, the stamps the kernel applies, ordering, the msgpack payload and the size limits.
- [Emission API](/kernel/internals/kmes/emission-api.md): The in-kernel emission interface — single and batch emission, the structural checks that drop an event, and what happens when a ring is full.
- [Ring Buffers](/kernel/internals/kmes/ring-buffers.md): One ring per logical CPU — how they are organised, the two producer metadata pages, wrap handling, the write protocol and notification.
- [Self-configuration](/kernel/internals/kmes/self-configuration.md): The four parameters KMES reads from the registry, how it bootstraps before LCS exists, and the watch that keeps them current.
- [Failure Modes](/kernel/internals/kmes/failure-modes.md): Ring overrun, event drops, consumer crashes, buffer swap failure, LCS unavailability and clock discontinuity — what each does.
- [Emission Policy](/kernel/internals/kmes/emission-policy.md): How the kernel decides which of its own event types are switched on — the generated type table, the cached enabled mask, the walk of Machine\Generic\Events, the watch that keeps it current, and the tier defaults it runs on until the registry can be read.

## BPF

- [BPF Documentation](/kernel/internals/bpf/index.md): This directory contains documentation for the BPF (Berkeley Packet Filter) facility, with a focus on the extended BPF version (eBPF).
- [BPF Design Q&A](/kernel/internals/bpf/bpf-design-qa.md): BPF extensibility and applicability to networking, tracing, security in the linux kernel and several user space implementations of BPF virtual machine led to a number of misunderstanding on what BPF actually is. This short QA is an attempt…
- [HOWTO interact with BPF subsystem](/kernel/internals/bpf/bpf-devel-qa.md): This document provides information for the BPF subsystem about various workflows related to reporting bugs, submitting patches, and queueing patches for stable kernels.
- [BPF Iterators](/kernel/internals/bpf/bpf-iterators.md): BPF supports two separate entities collectively known as "BPF iterators": BPF iterator program type and open-coded BPF iterators. The former is a stand-alone BPF program type which, when attached and activated by user, will be called once…
- [BPF licensing](/kernel/internals/bpf/bpf-licensing.md): Classic BPF was BSD licensed
- [Running BPF programs from userspace](/kernel/internals/bpf/bpf-prog-run.md): This document describes the BPF_PROG_RUN facility for running BPF programs from userspace.
- [BPF Type Format (BTF)](/kernel/internals/bpf/btf.md): BTF (BPF Type Format) is the metadata format which encodes the debug info related to BPF program/map. The name BTF was used initially to describe data types. The BTF was later extended to include function info for defined subroutines, and…
- [Contents](/kernel/internals/bpf/clang-notes.md): 1 Clang implementation notes
- [Classic BPF vs eBPF](/kernel/internals/bpf/classic-vs-extended.md): eBPF is designed to be JITed with one to one mapping, which can also open up the possibility for GCC/LLVM compilers to generate optimized eBPF code through an eBPF backend that performs almost as fast as natively compiled code.
- [BPF cpumask kfuncs](/kernel/internals/bpf/cpumasks.md): struct cpumask is a bitmap data structure in the kernel whose indices reflect the CPUs on the system. Commonly, cpumasks are used to track which CPUs a task is affinitized to, but they can also be used to e.g. track which cores are…
- [BPF drgn tools](/kernel/internals/bpf/drgn.md): drgn scripts is a convenient and easy to use mechanism to retrieve arbitrary kernel data structures. drgn is not relying on kernel UAPI to read the data. Instead it's reading directly from /proc/kcore or vmcore and pretty prints the data…
- [Frequently asked questions (FAQ)](/kernel/internals/bpf/faq.md): Two sets of Questions and Answers (Q&A) are maintained.
- [BPF filesystem kfuncs](/kernel/internals/bpf/fs-kfuncs.md): BPF LSM programs need to access filesystem data from LSM hooks. The following BPF kfuncs can be used to get these data.
- [BPF Graph Data Structures](/kernel/internals/bpf/graph-ds-impl.md): This document describes implementation details of new-style "graph" data structures (linked_list, rbtree), with particular focus on the verifier's implementation of semantics specific to those data structures.
- [Helper functions](/kernel/internals/bpf/helpers.md): bpf-helpers(7) maintains a list of helpers available to eBPF programs.
- [BPF Kernel Functions (kfuncs)](/kernel/internals/bpf/kfuncs.md): BPF Kernel Functions or more commonly known as kfuncs are functions in the Linux kernel which are exposed for use by BPF programs. Unlike normal BPF helpers, kfuncs do not have a stable interface and can change from one kernel release to…
- [Contents](/kernel/internals/bpf/linux-notes.md): 1 Linux implementation notes
- [BPF LLVM Relocations](/kernel/internals/bpf/llvm-reloc.md): This document describes LLVM BPF backend relocation types.
- [BPF_MAP_TYPE_ARRAY and BPF_MAP_TYPE_PERCPU_ARRAY](/kernel/internals/bpf/map-array.md): BPF_MAP_TYPE_ARRAY and BPF_MAP_TYPE_PERCPU_ARRAY provide generic array storage. The key type is an unsigned 32-bit integer (4 bytes) and the map is of constant size. The size of the array is defined in max_entries at creation time. All…
- [BPF_MAP_TYPE_BLOOM_FILTER](/kernel/internals/bpf/map-bloom-filter.md): BPF_MAP_TYPE_BLOOM_FILTER provides a BPF bloom filter map. Bloom filters are a space-efficient probabilistic data structure used to quickly test whether an element exists in a set. In a bloom filter, false positives are possible whereas…
- [BPF_MAP_TYPE_CGROUP_STORAGE](/kernel/internals/bpf/map-cgroup-storage.md): The BPF_MAP_TYPE_CGROUP_STORAGE map type represents a local fix-sized storage. It is only available with CONFIG_CGROUP_BPF, and to programs that attach to cgroups; the programs are made available by the same Kconfig. The storage is…
- [BPF_MAP_TYPE_CGRP_STORAGE](/kernel/internals/bpf/map-cgrp-storage.md): The BPF_MAP_TYPE_CGRP_STORAGE map type represents a local fix-sized storage for cgroups. It is only available with CONFIG_CGROUPS. The programs are made available by the same Kconfig. The data for a particular cgroup can be retrieved by…
- [BPF_MAP_TYPE_CPUMAP](/kernel/internals/bpf/map-cpumap.md): An example use-case for this map type is software based Receive Side Scaling (RSS).
- [BPF_MAP_TYPE_DEVMAP and BPF_MAP_TYPE_DEVMAP_HASH](/kernel/internals/bpf/map-devmap.md): BPF_MAP_TYPE_DEVMAP and BPF_MAP_TYPE_DEVMAP_HASH are BPF maps primarily used as backend maps for the XDP BPF helper call bpf_redirect_map(). BPF_MAP_TYPE_DEVMAP is backed by an array that uses the key as the index to lookup a reference to…
- [BPF_MAP_TYPE_HASH, with PERCPU and LRU Variants](/kernel/internals/bpf/map-hash.md): BPF_MAP_TYPE_HASH and BPF_MAP_TYPE_PERCPU_HASH provide general purpose hash map storage. Both the key and the value can be structs, allowing for composite keys and values.
- [BPF_MAP_TYPE_LPM_TRIE](/kernel/internals/bpf/map-lpm-trie.md): BPF_MAP_TYPE_LPM_TRIE provides a longest prefix match algorithm that can be used to match IP addresses to a stored set of prefixes. Internally, data is stored in an unbalanced trie of nodes that uses prefixlen,data pairs as its keys. The…
- [BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS](/kernel/internals/bpf/map-of-maps.md): BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS provide general purpose support for map in map storage. One level of nesting is supported, where an outer map contains instances of a single type of inner map, for example…
- [BPF_MAP_TYPE_QUEUE and BPF_MAP_TYPE_STACK](/kernel/internals/bpf/map-queue-stack.md): BPF_MAP_TYPE_QUEUE provides FIFO storage and BPF_MAP_TYPE_STACK provides LIFO storage for BPF programs. These maps support peek, pop and push operations that are exposed to BPF programs through the respective helpers. These operations are…
- [BPF_MAP_TYPE_SK_STORAGE](/kernel/internals/bpf/map-sk-storage.md): BPF_MAP_TYPE_SK_STORAGE is used to provide socket-local storage for BPF programs. A map of type BPF_MAP_TYPE_SK_STORAGE declares the type of storage to be provided and acts as the handle for accessing the socket-local storage. The values…
- [BPF_MAP_TYPE_SOCKMAP and BPF_MAP_TYPE_SOCKHASH](/kernel/internals/bpf/map-sockmap.md): BPF_MAP_TYPE_SOCKMAP and BPF_MAP_TYPE_SOCKHASH maps can be used to redirect skbs between sockets or to apply policy at the socket level based on the result of a BPF (verdict) program with the help of the BPF helpers bpf_sk_redirect_map(),…
- [BPF_MAP_TYPE_XSKMAP](/kernel/internals/bpf/map-xskmap.md): The BPF_MAP_TYPE_XSKMAP is used as a backend map for XDP BPF helper call bpf_redirect_map() and XDP_REDIRECT action, like 'devmap' and 'cpumap'. This map type redirects raw XDP frames to AF_XDP sockets (XSKs), a new type of address family…
- [BPF maps](/kernel/internals/bpf/maps.md): BPF 'maps' provide generic storage of different types for sharing data between kernel and user space. There are several storage types available, including hash, array, bloom filter and radix-tree. Several of the map types exist to support…
- [Other](/kernel/internals/bpf/other.md): Reference for Other.
- [BPF_PROG_TYPE_CGROUP_SOCKOPT](/kernel/internals/bpf/prog-cgroup-sockopt.md): BPF_PROG_TYPE_CGROUP_SOCKOPT program type can be attached to two cgroup hooks:
- [BPF_PROG_TYPE_CGROUP_SYSCTL](/kernel/internals/bpf/prog-cgroup-sysctl.md): This document describes BPF_PROG_TYPE_CGROUP_SYSCTL program type that provides cgroup-bpf hook for sysctl.
- [BPF_PROG_TYPE_FLOW_DISSECTOR](/kernel/internals/bpf/prog-flow-dissector.md): Flow dissector is a routine that parses metadata out of the packets. It's used in the various places in the networking subsystem (RFS, flow hash, etc).
- [LSM BPF Programs](/kernel/internals/bpf/prog-lsm.md): These BPF programs allow runtime instrumentation of the LSM hooks by privileged users to implement system-wide MAC (Mandatory Access Control) and Audit policies using eBPF.
- [BPF sk_lookup program](/kernel/internals/bpf/prog-sk-lookup.md): BPF sk_lookup program type (BPF_PROG_TYPE_SK_LOOKUP) introduces programmability into the socket lookup performed by the transport layer when a packet is to be delivered locally.
- [Program Types](/kernel/internals/bpf/programs.md): For a list of all program types, see program_types_and_elf in the libbpf documentation.
- [Redirect](/kernel/internals/bpf/redirect.md): XDP_REDIRECT works with the following map types:
- [BPF ring buffer](/kernel/internals/bpf/ringbuf.md): This document describes BPF ring buffer design, API, and implementation details.
- [Testing BPF on s390](/kernel/internals/bpf/s390.md): IBM Z are mainframe computers, which are descendants of IBM System/360 from year 1964. They are supported by the Linux kernel under the name "s390". This document describes how to test BPF in an s390 QEMU guest.
- [Syscall API](/kernel/internals/bpf/syscall-api.md): The primary info for the bpf syscall is available in the man-pages for bpf(2). For more information about the userspace API, see Documentation/userspace-api/ebpf/index.rst.
- [Testing and debugging BPF](/kernel/internals/bpf/test-debug.md): Reference for Testing and debugging BPF.
- [eBPF verifier](/kernel/internals/bpf/verifier.md): The safety of the eBPF program is determined in two steps.
- [libbpf](/kernel/internals/bpf/libbpf/index.md): Duplicate implicit target name: "libbpf".
- [Building libbpf](/kernel/internals/bpf/libbpf/libbpf-build.md): libelf and zlib are internal dependencies of libbpf and thus are required to link against and must be installed on the system for applications to work. pkg-config is used by default to find libelf, and the program called can be overridden…
- [API naming convention](/kernel/internals/bpf/libbpf/libbpf-naming-convention.md): libbpf API provides access to a few logically separated groups of functions and types. Every group has its own naming convention described here. It's recommended to follow these conventions whenever a new function or type is added to keep…
- [libbpf Overview](/kernel/internals/bpf/libbpf/libbpf-overview.md): libbpf is a C-based library containing a BPF loader that takes compiled BPF object files and prepares and loads them into the Linux kernel. libbpf takes the heavy lifting of loading, verifying, and attaching BPF programs to various kernel…
- [Program Types and ELF Sections](/kernel/internals/bpf/libbpf/program-types.md): The table below lists the program types, their attach types where relevant and the ELF section names supported by libbpf for them. The ELF section names follow these rules:
- [BPF Standardization](/kernel/internals/bpf/standardization/index.md): This directory contains documents that are being iterated on as part of the BPF standardization effort with the IETF. See the IETF BPF Working Group page for the working group charter, documents, and more.
- [Contents](/kernel/internals/bpf/standardization/abi.md): 1 BPF ABI Recommended Conventions and Guidelines v1.0
- [Contents](/kernel/internals/bpf/standardization/instruction-set.md): 1 BPF Instruction Set Architecture (ISA)

## Core APIs

- [Core API Documentation](/kernel/internals/core-api/index.md): This is the beginning of a manual for core kernel APIs. The conversion (and writing!) of documents for this manual is much appreciated!
- [Assembler Annotations](/kernel/internals/core-api/asm-annotations.md): Copyright (c) 2017-2019 Jiri Slaby
- [Generic Associative Array Implementation](/kernel/internals/core-api/assoc-array.md): This associative array implementation is an object container with the following properties:
- [Boot time memory management](/kernel/internals/core-api/boot-time-mm.md): Early system initialization cannot use "normal" memory management simply because it is not set up yet. But there is still need to allocate memory for various data structures, for instance for the physical page allocator.
- [Cache and TLB Flushing Under Linux](/kernel/internals/core-api/cachetlb.md): This document describes the cache/tlb flushing interfaces called by the Linux VM subsystem. It enumerates over each interface, describes its intended purpose, and what side effect is expected after the interface is invoked.
- [Cgroup Kernel APIs](/kernel/internals/core-api/cgroup.md): Reference for Cgroup Kernel APIs.
- [Circular Buffers](/kernel/internals/core-api/circular-buffers.md): Linux provides a number of features that can be used to implement circular buffering. There are two sets of such features:
- [Scope-based Cleanup Helpers](/kernel/internals/core-api/cleanup.md): Reference for Scope-based Cleanup Helpers.
- [CPU hotplug in the Kernel](/kernel/internals/core-api/cpu-hotplug.md): Modern advances in system architectures have introduced advanced error reporting and correction capabilities in processors. There are couple OEMS that support NUMA hardware which are hot pluggable as well, where physical node insertion and…
- [The object-lifetime debugging infrastructure](/kernel/internals/core-api/debug-objects.md): debugobjects is a generic infrastructure to track the life time of kernel objects and validate the operations on those.
- [Using physical DMA provided by OHCI-1394 FireWire controllers for debugging](/kernel/internals/core-api/debugging-via-ohci1394.md): Basically all FireWire controllers which are in use today are compliant to the OHCI-1394 specification which defines the controller to be a PCI bus master which uses DMA to offload data transfers from the CPU and has a "Physical Response…
- [Dynamic DMA mapping Guide](/kernel/internals/core-api/dma-api-howto.md): This is a guide to device driver writers on how to use the DMA API with example pseudo-code. For a concise description of the API, see Documentation/core-api/dma-api.rst.
- [Dynamic DMA mapping using the generic device](/kernel/internals/core-api/dma-api.md): This document describes the DMA API. For a more gentle introduction of the API (and actual examples), see Documentation/core-api/dma-api-howto.rst.
- [DMA attributes](/kernel/internals/core-api/dma-attributes.md): This document describes the semantics of the DMA attributes that are defined in linux/dma-mapping.h.
- [DMA with ISA and LPC devices](/kernel/internals/core-api/dma-isa-lpc.md): This document describes how to do DMA transfers using the old ISA DMA controller. Even though ISA is more or less dead today the LPC bus uses the same DMA system so it will be around for quite some time.
- [Entry/exit handling for exceptions, interrupts, syscalls and KVM](/kernel/internals/core-api/entry.md): All transitions between execution domains require state updates which are subject to strict ordering constraints. State updates are required for the following:
- [The errseq_t datatype](/kernel/internals/core-api/errseq.md): An errseq_t is a way of recording errors in one place, and allowing any number of "subscribers" to tell whether it has changed since a previous point where it was sampled.
- [Floating-point API](/kernel/internals/core-api/floating-point.md): Kernel code is normally prohibited from using floating-point (FP) registers or instructions, including the C float and double data types. This rule reduces system call overhead, because the kernel does not need to save and restore the…
- [Folio Queue](/kernel/internals/core-api/folio-queue.md): The folio_queue struct forms a single segment in a segmented list of folios that can be used to form an I/O buffer. As such, the list can be iterated over using the ITER_FOLIOQ iov_iter type.
- [The genalloc/genpool subsystem](/kernel/internals/core-api/genalloc.md): There are a number of memory-allocation subsystems in the kernel, each aimed at a specific need. Sometimes, however, a kernel developer needs to implement a new allocator for a specific range of special-purpose memory; often that memory is…
- [Generic radix trees/sparse arrays](/kernel/internals/core-api/generic-radix-tree.md): Reference for Generic radix trees/sparse arrays.
- [Linux generic IRQ handling](/kernel/internals/core-api/genericirq.md): The generic interrupt handling layer is designed to provide a complete abstraction of interrupt handling for device drivers. It is able to handle all the different types of interrupt controller hardware. Device drivers use generic API…
- [GFP masks used from FS/IO context](/kernel/internals/core-api/gfp-mask-from-fs-io.md): Code paths in the filesystem and IO stacks must be careful when allocating memory to prevent recursion deadlocks caused by direct memory reclaim calling back into the FS or IO paths and blocking on already held resources (e.g. locks - most…
- [Housekeeping](/kernel/internals/core-api/housekeeping.md): CPU Isolation moves away kernel work that may otherwise run on any CPU. The purpose of its related features is to reduce the OS jitter that some extreme workloads can't stand, such as in some DPDK usecases.
- [ID Allocation](/kernel/internals/core-api/idr.md): A common problem to solve is allocating identifiers (IDs); generally small numbers which identify a thing. Examples include file descriptors, process IDs, packet identifiers in networking protocols, SCSI tags and device instance numbers.…
- [The Linux Kernel API](/kernel/internals/core-api/kernel-api.md): When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined…
- [Everything you never wanted to know about kobjects, ksets, and ktypes](/kernel/internals/core-api/kobject.md): Based on an original article by Jon Corbet for lwn.net written October 1, 2003 and located at https://lwn.net/Articles/51437/
- [Adding reference counters (krefs) to kernel objects](/kernel/internals/core-api/kref.md): A lot of this was lifted from Greg Kroah-Hartman's 2004 OLS paper and presentation on krefs, which can be found at:
- [Reed-Solomon Library Programming Interface](/kernel/internals/core-api/librs.md): The generic Reed-Solomon Library provides encoding, decoding and error correction functions.
- [Linked Lists in Linux](/kernel/internals/core-api/list.md): Introduction
- [Live Update Orchestrator](/kernel/internals/core-api/liveupdate.md): The following types of file descriptors can be preserved
- [Semantics and Behavior of Local Atomic Operations](/kernel/internals/core-api/local-ops.md): This document explains the purpose of the local atomic operations, how to implement them for any given architecture and shows how they can be used properly. It also stresses on the precautions that must be taken when reading those local…
- [Maple Tree](/kernel/internals/core-api/maple-tree.md): The Maple Tree is a B-Tree data type which is optimized for storing non-overlapping ranges, including ranges of size 1. The tree was designed to be simple to use and does not require a user written search method. It supports iterating over…
- [Memory Allocation Guide](/kernel/internals/core-api/memory-allocation.md): Linux provides a variety of APIs for memory allocation. You can allocate small chunks using kmalloc or kmem_cache_alloc families, large virtually contiguous areas using vmalloc and its derivatives, or you can directly request pages from…
- [Memory hotplug](/kernel/internals/core-api/memory-hotplug.md): Hotplugging events are sent to a notification queue.
- [Min Heap API](/kernel/internals/core-api/min-heap.md): The Min Heap API provides a set of functions and macros for managing min-heaps in the Linux kernel. A min-heap is a binary tree structure where the value of each node is less than or equal to the values of its children, ensuring that the…
- [Memory Management APIs](/kernel/internals/core-api/mm-api.md): Reference for Memory Management APIs.
- [Netlink notes for kernel developers](/kernel/internals/core-api/netlink.md): Older families often define "null" attributes and commands with value of 0 and named unspec. This is supported (type: unused) but should be avoided in new families. The unspec enum values are not used in practice, so just set the value of…
- [Generic bitfield packing and unpacking functions](/kernel/internals/core-api/packing.md): When working with hardware, one has to choose between several approaches of interfacing with it. One can memory-map a pointer to a carefully crafted struct over the hardware device's memory region, and access its fields as struct members…
- [The padata parallel execution mechanism](/kernel/internals/core-api/padata.md): Padata is a mechanism by which the kernel can farm jobs out to be done in parallel on multiple CPUs while optionally retaining their ordering.
- [Generic parser](/kernel/internals/core-api/parser.md): The generic parser is a simple parser for parsing mount options, filesystem options, driver options, subsystem options, etc.
- [pin_user_pages() and related calls](/kernel/internals/core-api/pin-user-pages.md): Overview
- [Message logging with printk](/kernel/internals/core-api/printk-basics.md): printk() is one of the most widely known functions in the Linux kernel. It's the standard tool we have for printing messages and usually the most basic way of tracing and debugging. If you're familiar with printf(3) you can tell printk()…
- [How to get printk format specifiers right](/kernel/internals/core-api/printk-formats.md): If <type> is architecture-dependent for its size (e.g., cycles_t, tcflag_t) or is dependent on a config option for its size (e.g., blk_status_t), use a format specifier of its largest possible type and explicitly cast to it.
- [Printk Index](/kernel/internals/core-api/printk-index.md): There are many ways to monitor the state of the system. One important source of information is the system log. It provides a lot of information, including more or less important warnings and error messages.
- [Memory Protection Keys](/kernel/internals/core-api/protection-keys.md): Memory Protection Keys provide a mechanism for enforcing page-based protections, but without requiring modification of the page tables when an application changes protection domains.
- [Red-black Trees (rbtree) in Linux](/kernel/internals/core-api/rbtree.md): Red-black trees are a type of self-balancing binary search tree, used for storing sortable key/value data pairs. This differs from radix trees (which are used to efficiently store sparse arrays and thus use long integer indexes to…
- [refcount_t API compared to atomic_t](/kernel/internals/core-api/refcount-vs-atomic.md): Introduction
- [DMA and swiotlb](/kernel/internals/core-api/swiotlb.md): swiotlb is a memory buffer allocator used by the Linux kernel DMA layer. It is typically used when a device doing DMA can't directly access the target memory buffer because of hardware limitations or other requirements. In such a case, the…
- [Symbol Namespaces](/kernel/internals/core-api/symbol-namespaces.md): The following document describes how to use Symbol Namespaces to structure the export surface of in-kernel symbols exported through the family of EXPORT_SYMBOL() macros.
- [this_cpu operations](/kernel/internals/core-api/this-cpu-ops.md): this_cpu operations are a way of optimizing access to per cpu variables associated with the currently executing processor. This is done through the use of segment registers (or a dedicated register where the cpu permanently stored the…
- [ktime accessors](/kernel/internals/core-api/timekeeping.md): Device drivers can read the current time using ktime_get() and the many related functions declared in linux/timekeeping.h. As a rule of thumb, using an accessor with a shorter name is preferred over one with a longer name if both are…
- [The Linux Kernel Tracepoint API](/kernel/internals/core-api/tracepoint.md): Tracepoints are static probe points that are located in strategic points throughout the kernel. 'Probes' register/unregister with tracepoints via a callback mechanism. The 'probes' are strictly typed functions that are passed a unique set…
- [Unaligned Memory Accesses](/kernel/internals/core-api/unaligned-memory-access.md): Linux runs on a wide variety of architectures which have varying behaviour when it comes to memory access. This document presents some details about unaligned accesses, why you need to write code that doesn't cause them, and how to write…
- [Union-Find in Linux](/kernel/internals/core-api/union-find.md): Union-find is a data structure used to handle the merging and querying of disjoint sets. The primary operations supported by union-find are:
- [General notification mechanism](/kernel/internals/core-api/watch-queue.md): The general notification mechanism is built on top of the standard pipe driver whereby it effectively splices notification messages from the kernel into pipes opened by userspace. This can be used in conjunction with:
- [Workqueue](/kernel/internals/core-api/workqueue.md): There are many cases where an asynchronous process execution context is needed and the workqueue (wq) API is the most commonly used mechanism for such cases.
- [XArray](/kernel/internals/core-api/xarray.md): The XArray is an abstract data type which behaves like a very large array of pointers. It meets many of the same needs as a hash or a conventional resizable array. Unlike a hash, it allows you to sensibly go to the next or previous entry…
- [IRQs](/kernel/internals/core-api/irq/index.md): Reference for IRQs.
- [What is an IRQ?](/kernel/internals/core-api/irq/concepts.md): An IRQ is an interrupt request from a device. Currently, they can come in over a pin, or over a packet. Several devices may be connected to the same pin thus sharing an IRQ. Such as on legacy PCI bus: All devices typically share 4…
- [SMP IRQ affinity](/kernel/internals/core-api/irq/irq-affinity.md): Started by Ingo Molnar <mingo@redhat.com>
- [The irq_domain Interrupt Number Mapping Library](/kernel/internals/core-api/irq/irq-domain.md): The current design of the Linux kernel uses a single large number space where each separate IRQ source is assigned a unique number. This is simple when there is only one interrupt controller. But in systems with multiple interrupt…
- [IRQ-flags state tracing](/kernel/internals/core-api/irq/irqflags-tracing.md): The "irq-flags tracing" feature "traces" hardirq and softirq state, in that it gives interested subsystems an opportunity to be notified of every hardirqs-off/hardirqs-on, softirqs-off/softirqs-on event that happens in the kernel.
- [Kexec Handover Subsystem](/kernel/internals/core-api/kho/index.md): Kexec HandOver (KHO) is a mechanism that allows Linux to preserve memory regions, which could contain serialized system states, across kexec.
- [Kexec Handover ABI](/kernel/internals/core-api/kho/abi.md): /admin-guide/mm/kho
- [Real-time preemption](/kernel/internals/core-api/real-time/index.md): This documentation is intended for Linux kernel developers and contributors interested in the inner workings of PREEMPT_RT. It explains key concepts and the required changes compared to a non-PREEMPT_RT configuration.
- [Porting an architecture to support PREEMPT_RT](/kernel/internals/core-api/real-time/architecture-porting.md): This list outlines the architecture specific requirements that must be implemented in order to enable PREEMPT_RT. Once all required features are implemented, ARCH_SUPPORTS_RT can be selected in architecture’s Kconfig to make PREEMPT_RT…
- [How realtime kernels differ](/kernel/internals/core-api/real-time/differences.md): With forced-threaded interrupts and sleeping spin locks, code paths that previously caused long scheduling latencies have been made preemptible and moved into process context. This allows the scheduler to manage them more effectively and…
- [Considering hardware](/kernel/internals/core-api/real-time/hardware.md): The way a workload is handled can be influenced by the hardware it runs on. Key components include the CPU, memory, and the buses that connect them. These resources are shared among all applications on the system. As a result, heavy…
- [Theory of operation](/kernel/internals/core-api/real-time/theory.md): PREEMPT_RT transforms the Linux kernel into a real-time kernel. It achieves this by replacing locking primitives, such as spinlock_t, with a preemptible and priority-inheritance aware implementation known as rtmutex, and by enforcing the…
- [Atomic bitops](/kernel/internals/core-api/wrappers/atomic-bitops.md): Reference for Atomic bitops.
- [Atomic types](/kernel/internals/core-api/wrappers/atomic-t.md): Reference for Atomic types.
- [Linux kernel memory barriers](/kernel/internals/core-api/wrappers/memory-barriers.md): Reference for Linux kernel memory barriers.

## Memory management

- [Memory Management Documentation](/kernel/internals/mm/index.md): This is a guide to understanding the memory management subsystem of Linux. If you are looking for advice on simply allocating memory, see the memory_allocation. For controlling and tuning guides, see the admin guide…
- [Active MM](/kernel/internals/mm/active-mm.md): Note, the mm_count refcount may no longer include the "lazy" users (running tasks with ->active_mm == mm && ->mm == NULL) on kernels with CONFIG_MMU_LAZY_TLB_REFCOUNT=n. Taking and releasing these lazy references must be done with…
- [MEMORY ALLOCATION PROFILING](/kernel/internals/mm/allocation-profiling.md): Low overhead (suitable for production) accounting of all memory allocations, tracked by file and line number.
- [Architecture Page Table Helpers](/kernel/internals/mm/arch-pgtable-helpers.md): Generic MM expects architectures (with MMU) to provide helpers to create, access and modify page table entries at various level for different memory functions. These page table helpers need to conform to a common semantics across…
- [Memory Balancing](/kernel/internals/mm/balance.md): Started Jan 2000 by Kanoj Sarcar <kanoj@sgi.com>
- [Boot Memory](/kernel/internals/mm/bootmem.md): Reference for Boot Memory.
- [Free Page Reporting](/kernel/internals/mm/free-page-reporting.md): Free page reporting is an API by which a device can register to receive lists of pages that are currently unused by the system. This is useful in the case of virtualization where a guest is then able to use this data to notify the…
- [High Memory Handling](/kernel/internals/mm/highmem.md): By: Peter Zijlstra <a.p.zijlstra@chello.nl>
- [Heterogeneous Memory Management (HMM)](/kernel/internals/mm/hmm.md): Provide infrastructure and helpers to integrate non-conventional memory (device memory like GPU on board memory) into regular kernel path, with the cornerstone of this being specialized struct page for such memory (see sections 5 to 7 of…
- [Hugetlbfs Reservation](/kernel/internals/mm/hugetlbfs-reserv.md): Huge pages as described at Documentation/admin-guide/mm/hugetlbpage.rst are typically preallocated for application use. These huge pages are instantiated in a task's address space at page fault time if the VMA indicates huge pages are to…
- [hwpoison](/kernel/internals/mm/hwpoison.md): Upcoming Intel CPUs have support for recovering from some memory errors (MCA recovery). This requires the OS to declare a page "poisoned", kill the processes associated with it and avoid using it in the future.
- [Kernel Samepage Merging](/kernel/internals/mm/ksm.md): KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y, added to the Linux kernel in 2.6.32. See mm/ksm.c for its implementation, and http://lwn.net/Articles/306704/ and https://lwn.net/Articles/330589/
- [Memfd Preservation via LUO](/kernel/internals/mm/memfd-preservation.md): /core-api/liveupdate
- [Physical Memory Model](/kernel/internals/mm/memory-model.md): Physical memory in a system may be addressed in different ways. The simplest case is when the physical memory starts at address 0 and spans a contiguous range up to the maximal address. It could be, however, that this range contains small…
- [When do you need to notify inside page table lock ?](/kernel/internals/mm/mmu-notifier.md): When clearing a pte/pmd we are given a choice to notify the event through (notify version of *_clear_flush call mmu_notifier_invalidate_range) under the page table lock. But that notification is not necessary in all cases.
- [Multi-Gen LRU](/kernel/internals/mm/multigen-lru.md): The multi-gen LRU is an alternative LRU implementation that optimizes page reclaim and improves performance under memory pressure. Page reclaim decides the kernel's caching policy and ability to overcommit memory. It directly impacts the…
- [What is NUMA?](/kernel/internals/mm/numa.md): Started Nov 1999 by Kanoj Sarcar <kanoj@sgi.com>
- [Out Of Memory Handling](/kernel/internals/mm/oom.md): Reference for Out Of Memory Handling.
- [Overcommit Accounting](/kernel/internals/mm/overcommit-accounting.md): The Linux kernel supports the following overcommit handling modes
- [Page Allocation](/kernel/internals/mm/page-allocation.md): Reference for Page Allocation.
- [Page Cache](/kernel/internals/mm/page-cache.md): The page cache is the primary way that the user and the rest of the kernel interact with filesystems. It can be bypassed (e.g. with O_DIRECT), but normal reads, writes and mmaps go through the page cache.
- [Page fragments](/kernel/internals/mm/page-frags.md): A page fragment is an arbitrary-length arbitrary-offset area of memory which resides within a 0 or higher order compound page. Multiple fragments within that page are individually refcounted, in the page's reference counter.
- [Page migration](/kernel/internals/mm/page-migration.md): Page migration allows moving the physical location of pages between nodes in a NUMA system while the process is running. This means that the virtual addresses that the process sees do not change. However, the system rearranges the physical…
- [page owner: Tracking about who allocated each page](/kernel/internals/mm/page-owner.md): page owner is for the tracking about who allocated each page. It can be used to debug memory leak or to find a memory hogger. When allocation happens, information about allocation such as call stack and order of pages is stored into…
- [Page Reclaim](/kernel/internals/mm/page-reclaim.md): Reference for Page Reclaim.
- [Page Table Check](/kernel/internals/mm/page-table-check.md): Page table check allows to harden the kernel by ensuring that some types of the memory corruptions are prevented.
- [Page Tables](/kernel/internals/mm/page-tables.md): Paged virtual memory was invented along with virtual memory as a concept in 1962 on the Ferranti Atlas Computer which was the first computer with paged virtual memory. The feature migrated to newer computers and became a de facto feature…
- [Physical Memory](/kernel/internals/mm/physical-memory.md): Linux is available for a wide range of architectures so there is a need for an architecture-independent abstraction to represent the physical memory. This chapter describes the structures used to manage physical memory in a running system.
- [Process Addresses](/kernel/internals/mm/process-addrs.md): Userland memory ranges are tracked by the kernel via Virtual Memory Areas or 'VMA's of type !struct vm_area_struct.
- [remap_file_pages() system call](/kernel/internals/mm/remap-file-pages.md): The remap_file_pages() system call is used to create a nonlinear mapping, that is, a mapping in which the pages of the file are mapped into a nonsequential order in memory. The advantage of using remap_file_pages() over using repeated…
- [Shared Memory Filesystem](/kernel/internals/mm/shmfs.md): Reference for Shared Memory Filesystem.
- [Slab Allocation](/kernel/internals/mm/slab.md): Reference for Slab Allocation.
- [Split page table lock](/kernel/internals/mm/split-page-table-lock.md): Originally, mm->page_table_lock spinlock protected all page tables of the mm_struct. But this approach leads to poor page fault scalability of multi-threaded applications due to high contention on the lock. To improve scalability, split…
- [Swap Table](/kernel/internals/mm/swap-table.md): Swap table implements swap cache as a per-cluster swap cache value array.
- [Swap](/kernel/internals/mm/swap.md): Reference for Swap.
- [Transparent Hugepage Support](/kernel/internals/mm/transhuge.md): This document describes design principles for Transparent Hugepage (THP) support and its interaction with other parts of the memory management system.
- [Unevictable LRU Infrastructure](/kernel/internals/mm/unevictable-lru.md): Introduction
- [Virtually Contiguous Memory Allocation](/kernel/internals/mm/vmalloc.md): Reference for Virtually Contiguous Memory Allocation.
- [Virtually Mapped Kernel Stack Support](/kernel/internals/mm/vmalloced-kernel-stacks.md): Overview
- [A vmemmap diet for HugeTLB and Device DAX](/kernel/internals/mm/vmemmap-dedup.md): This section is to explain how HugeTLB Vmemmap Optimization (HVO) works.
- [zsmalloc](/kernel/internals/mm/zsmalloc.md): This allocator is designed for use with zram. Thus, the allocator is supposed to work well under low memory conditions. In particular, it never attempts higher order page allocation which is very likely to fail under memory pressure. On…
- [DAMON: Data Access MONitoring and Access-aware System Operations](/kernel/internals/mm/damon/index.md): DAMON is a Linux kernel subsystem for efficient data access monitoring <damon_design_monitoring> and access-aware system operations <damon_design_damos>. It is designed for being
- [API Reference](/kernel/internals/mm/damon/api.md): Kernel space programs can use every feature of DAMON using below APIs. All you need to do is including damon.h, which is located in include/linux/ of the source tree.
- [Design](/kernel/internals/mm/damon/design.md): The monitoring-related information including the monitoring request specification and DAMON-based operation schemes are stored in a data structure called DAMON context. DAMON executes each context with a kernel thread called kdamond.…
- [Frequently Asked Questions](/kernel/internals/mm/damon/faq.md): No. The core of the DAMON is address space independent. The address space specific monitoring operations including monitoring target regions constructions and actual access checks can be implemented and configured on the DAMON core by the…
- [DAMON Maintainer Entry Profile](/kernel/internals/mm/damon/maintainer-profile.md): The DAMON subsystem covers the files that are listed in 'DAMON' section of 'MAINTAINERS' file.
- [DAMON Moniting Interval Parameters Tuning Example](/kernel/internals/mm/damon/monitoring-intervals-tuning-example.md): DAMON's monitoring parameters need tuning based on given workload and the monitoring purpose. There is a tuning guide <damon_design_monitoring_params_tuning_guide> for that. This document provides an example tuning based on the guide.

## Staging

- [Unsorted Documentation](/kernel/internals/staging/index.md): Reference for Unsorted Documentation.
- [Brief tutorial on CRC computation](/kernel/internals/staging/crc32.md): A CRC is a long-division remainder. You add the CRC to the message, and the whole thing (message+CRC) is a multiple of the given CRC polynomial. To check the CRC, you can either check that the CRC matches the recomputed value, or you can…
- [LZO stream format as understood by Linux's LZO decompressor](/kernel/internals/staging/lzo.md): This is not a specification. No specification seems to be publicly available for the LZO stream format. This document describes what input format the LZO decompressor as implemented in the Linux kernel understands. The file subject of this…
- [Linux magic numbers](/kernel/internals/staging/magic-number.md): This file is a registry of magic numbers which are in use. When you add a magic number to a structure, you should also add it to this file, since it is best if the magic numbers used by various structures are unique.
- [Remote Processor Framework](/kernel/internals/staging/remoteproc.md): Modern SoCs typically have heterogeneous remote processor devices in asymmetric multiprocessing (AMP) configurations, which may be running different instances of operating system, whether it's Linux or any other flavor of real-time OS.
- [Remote Processor Messaging (rpmsg) Framework](/kernel/internals/staging/rpmsg.md): Modern SoCs typically employ heterogeneous remote processor devices in asymmetric multiprocessing (AMP) configurations, which may be running different instances of operating system, whether it's Linux or any other flavor of real-time OS.
- [Speculation](/kernel/internals/staging/speculation.md): This document explains potential effects of speculation, and how undesirable effects can be mitigated portably using common APIs.
- [Static Keys](/kernel/internals/staging/static-keys.md): Static keys allows the inclusion of seldom used features in performance-sensitive fast-path kernel code, via a GCC feature and a code patching technique. A quick example:
- [XZ data compression in Linux](/kernel/internals/staging/xz.md): XZ is a general purpose data compression format with high compression ratio. The XZ decompressor in Linux is called XZ Embedded. It supports the LZMA2 filter and optionally also Branch/Call/Jump (BCJ) filters for executable code. CRC32 is…

## Block

- [Block](/kernel/internals/block/index.md): Reference for Block.
- [BFQ (Budget Fair Queueing)](/kernel/internals/block/bfq-iosched.md): BFQ is a proportional-share I/O scheduler, with some extra low-latency capabilities. In addition to cgroups support (blkio or io controllers), BFQ's main features are:
- [Immutable biovecs and biovec iterators](/kernel/internals/block/biovecs.md): Kent Overstreet <kmo@daterainc.com>
- [Multi-Queue Block IO Queueing Mechanism (blk-mq)](/kernel/internals/block/blk-mq.md): The Multi-Queue Block IO Queueing Mechanism is an API to enable fast storage devices to achieve a huge number of input/output operations per second (IOPS) through queueing and submitting IO requests to block devices simultaneously,…
- [Embedded device command line partition parsing](/kernel/internals/block/cmdline-partition.md): The "blkdevparts" command line option adds support for reading the block device partition table from the kernel command line.
- [Data Integrity](/kernel/internals/block/data-integrity.md): Modern filesystems feature checksumming of data and metadata to protect against data corruption. However, the detection of the corruption is done at read time which could potentially be months after the data was written. At that point the…
- [Deadline IO scheduler tunables](/kernel/internals/block/deadline-iosched.md): This little file attempts to document how the deadline io scheduler works. In particular, it will clarify the meaning of the exposed tunables that may be of interest to power users.
- [Inline Encryption](/kernel/internals/block/inline-encryption.md): Inline encryption hardware sits logically between memory and disk, and can en/decrypt data as it goes in/out of the disk. For each I/O request, software can control exactly how the inline encryption hardware will en/decrypt the data in…
- [Block io priorities](/kernel/internals/block/ioprio.md): The io priority feature enables users to io nice processes or process groups, similar to what has been possible with cpu scheduling for ages. Support for io priorities is io scheduler dependent and currently supported by bfq and…
- [Kyber I/O scheduler tunables](/kernel/internals/block/kyber-iosched.md): The only two tunables for the Kyber scheduler are the target latencies for reads and synchronous writes. Kyber will throttle requests in order to meet these target latencies.
- [Null block device driver](/kernel/internals/block/null-blk.md): The null block device (/dev/nullb*) is used for benchmarking the various block-layer implementations. It emulates a block device of X gigabytes in size. It does not execute any read/write operation, just mark them as complete in the…
- [Block layer support for Persistent Reservations](/kernel/internals/block/pr.md): The Linux kernel supports a user space interface for simplified Persistent Reservations which map to block devices that support these (like SCSI). Persistent Reservations allow restricting access to block devices to specific initiators in…
- [Block layer statistics in /sys/block/<dev>/stat](/kernel/internals/block/stat.md): This file documents the contents of the /sys/block/<dev>/stat file.
- [Switching Scheduler](/kernel/internals/block/switching-sched.md): Each io queue has a set of io scheduler tunables associated with it. These tunables control how the io scheduler works. You can find these entries in:
- [Userspace block device driver (ublk driver)](/kernel/internals/block/ublk.md): ublk is a generic framework for implementing block device logic from userspace. The motivation behind it is that moving virtual block drivers into userspace, such as loop, nbd and similar can be very helpful. It can help to implement new…
- [Explicit volatile write back cache control](/kernel/internals/block/writeback-cache-control.md): Many storage devices, especially in the consumer market, come with volatile write back caches. That means the devices signal I/O completion to the operating system before data actually has hit the non-volatile storage. This behavior…

## Filesystems

- [Filesystems in the Linux kernel](/kernel/internals/filesystems/index.md): This under-development manual will, some glorious day, provide comprehensive information on how the Linux virtual filesystem (VFS) layer works, along with the filesystems that sit below it. For now, what we have can be found below.
- [v9fs: Plan 9 Resource Sharing for Linux](/kernel/internals/filesystems/9p.md): v9fs is a Unix implementation of the Plan 9 9p remote filesystem protocol.
- [Acorn Disc Filing System - ADFS](/kernel/internals/filesystems/adfs.md): The ADFS module supports the following Filecore formats which have:
- [Overview of Amiga Filesystems](/kernel/internals/filesystems/affs.md): Not all varieties of the Amiga filesystems are supported for reading and writing. The Amiga currently knows six different filesystems:
- [kAFS: AFS FILESYSTEM](/kernel/internals/filesystems/afs.md): This filesystem provides a fairly simple secure AFS filesystem driver. It is under development and does not yet provide the full feature set. The features it does support include:
- [Linux Filesystems API summary](/kernel/internals/filesystems/api-summary.md): This section contains API-level documentation, mostly taken from the source code itself.
- [Miscellaneous Device control operations for the autofs kernel module](/kernel/internals/filesystems/autofs-mount-control.md): There is a problem with active restarts in autofs (that is to say restarting autofs when there are busy mounts).
- [autofs - how it works](/kernel/internals/filesystems/autofs.md): The goal of autofs is to provide on-demand mounting and race free automatic unmounting of various other filesystems. This provides two key advantages:
- [Automount Support](/kernel/internals/filesystems/automount-support.md): Support is available for filesystems that wish to do automounting support (such as kAFS which can be found in fs/afs/ and NFS in fs/nfs/). This facility includes allowing in-kernel mounts to be performed and mountpoint degradation to be…
- [BeOS filesystem for Linux](/kernel/internals/filesystems/befs.md): Document last updated: Dec 6, 2001
- [BFS Filesystem for Linux](/kernel/internals/filesystems/bfs.md): The BFS filesystem is used by SCO UnixWare OS for the /stand slice, which usually contains the kernel image and a few other files required for the boot process.
- [BTRFS](/kernel/internals/filesystems/btrfs.md): Btrfs is a copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Jointly developed by several companies, licensed under the GPL and open for…
- [Buffer Heads](/kernel/internals/filesystems/buffer.md): Linux uses buffer heads to maintain state about individual filesystem blocks. Buffer heads are deprecated and new filesystems should use iomap instead.
- [Ceph Distributed File System](/kernel/internals/filesystems/ceph.md): Ceph is a distributed network file system designed to provide good performance, reliability, and scalability.
- [Coda Kernel-Venus Interface](/kernel/internals/filesystems/coda.md): For more information:
- [Configfs - Userspace-driven Kernel Object Configuration](/kernel/internals/filesystems/configfs.md): Joel Becker <joel.becker@oracle.com>
- [Cramfs - cram a filesystem onto a small ROM](/kernel/internals/filesystems/cramfs.md): cramfs is designed to be simple and small, and to compress things well.
- [Direct Access for files](/kernel/internals/filesystems/dax.md): The page cache is usually used to buffer reads and writes to files. It is also used to provide the pages which are mapped into userspace by a call to mmap.
- [DebugFS](/kernel/internals/filesystems/debugfs.md): Copyright © 2009 Jonathan Corbet <corbet@lwn.net>
- [The Devpts Filesystem](/kernel/internals/filesystems/devpts.md): Each mount of the devpts filesystem is now distinct such that ptys and their indices allocated in one mount are independent from ptys and their indices in all other mounts.
- [Directory Locking](/kernel/internals/filesystems/directory-locking.md): Locking scheme used for directory operations is based on two kinds of locks - per-inode (->i_rwsem) and per-filesystem (->s_vfs_rename_mutex).
- [DLMFS](/kernel/internals/filesystems/dlmfs.md): A minimal DLM userspace interface implemented via a virtual file system.
- [Linux Directory Notification](/kernel/internals/filesystems/dnotify.md): Stephen Rothwell <sfr@canb.auug.org.au>
- [eCryptfs: A stacked cryptographic filesystem for Linux](/kernel/internals/filesystems/ecryptfs.md): eCryptfs is free software. Please see the file COPYING for details. For documentation, please see the files in the doc/ subdirectory. For building and installation instructions please see the INSTALL file.
- [efivarfs - a (U)EFI variable filesystem](/kernel/internals/filesystems/efivarfs.md): The efivarfs filesystem was created to address the shortcomings of using entries in sysfs to maintain EFI variables. The old sysfs EFI variables code only supported variables of up to 1024 bytes. This limitation existed in version 0.99 of…
- [EROFS - Enhanced Read-Only File System](/kernel/internals/filesystems/erofs.md): EROFS filesystem stands for Enhanced Read-Only File System. It aims to form a generic read-only filesystem solution for various read-only use cases instead of just focusing on storage space saving without considering any side effects of…
- [The Second Extended Filesystem](/kernel/internals/filesystems/ext2.md): ext2 was originally released in January 1993. Written by R'emy Card, Theodore Ts'o and Stephen Tweedie, it was a major rewrite of the Extended Filesystem. It is currently still (April 2001) the predominant filesystem in use by Linux. There…
- [Ext3 Filesystem](/kernel/internals/filesystems/ext3.md): Ext3 was originally released in September 1999. Written by Stephen Tweedie for the 2.2 branch, and ported to 2.4 kernels by Peter Braam, Andreas Dilger, Andrew Morton, Alexander Viro, Ted Ts'o and Stephen Tweedie.
- [Flash-Friendly File System (F2FS)](/kernel/internals/filesystems/f2fs.md): NAND flash memory-based storage devices, such as SSD, eMMC, and SD cards, have been equipped on a variety systems ranging from mobile to server systems. Since they are known to have different characteristics from the conventional rotating…
- [Fiemap Ioctl](/kernel/internals/filesystems/fiemap.md): The fiemap ioctl is an efficient method for userspace to get file extent mappings. Instead of block-by-block mapping (such as bmap), fiemap returns a list of extents.
- [File management in the Linux kernel](/kernel/internals/filesystems/files.md): This document describes how locking for files (struct file) and file descriptor table (struct files) works.
- [Filesystem-level encryption (fscrypt)](/kernel/internals/filesystems/fscrypt.md): fscrypt is a library which filesystems can hook into to support transparent encryption of files and directories.
- [fs-verity: read-only file-based authenticity protection](/kernel/internals/filesystems/fsverity.md): fs-verity (fs/verity/) is a support layer that filesystems can hook into to support transparent integrity and authenticity protection of read-only files. Currently, it is supported by the ext4, f2fs, and btrfs filesystems. Like fscrypt,…
- [Macintosh HFS Filesystem for Linux](/kernel/internals/filesystems/hfs.md): HFS stands for Hierarchical File System and is the filesystem used by the Mac Plus and all later Macintosh models. Earlier Macintosh models used MFS (Macintosh File System), which is not supported, MacOS 8.1 and newer support a filesystem…
- [Macintosh HFSPlus Filesystem for Linux](/kernel/internals/filesystems/hfsplus.md): HFSPlus is a filesystem first introduced in MacOS 8.1. HFSPlus has several extensions to HFS, including 32-bit allocation blocks, 255-character unicode filenames, and file sizes of 2^63 bytes.
- [Read/Write HPFS 2.09](/kernel/internals/filesystems/hpfs.md): 1998-2004, Mikulas Patocka
- [Idmappings](/kernel/internals/filesystems/idmappings.md): Most filesystem developers will have encountered idmappings. They are used when reading from or writing ownership to disk, reporting ownership to userspace, or for permission checking. This document is aimed at filesystem developers that…
- [Inotify - A Powerful yet Simple File Change Notification System](/kernel/internals/filesystems/inotify.md): Document started 15 Mar 2005 by Robert Love <rml@novell.com>
- [ISO9660 Filesystem](/kernel/internals/filesystems/isofs.md): Mount options that are the same as for msdos and vfat partitions.
- [The Linux Journalling API](/kernel/internals/filesystems/journalling.md): The journalling layer is easy to use. You need to first of all create a journal_t data structure. There are two calls to do this dependent on how you decide to allocate the physical media on which the journal resides. The…
- [Locking](/kernel/internals/filesystems/locking.md): The text below describes the locking rules for VFS-related methods. It is (believed to be) up-to-date. Please, if you change anything in prototypes or locking protocols - update this file. And update the relevant instances in the tree,…
- [File Locking Release Notes](/kernel/internals/filesystems/locks.md): Andy Walker <andy@lysaker.kvaerner.no>
- [Filesystem Mount API](/kernel/internals/filesystems/mount-api.md): The creation of new mounts is now to be done in a multistep process:
- [Multigrain Timestamps](/kernel/internals/filesystems/multigrain-ts.md): Historically, the kernel has always used coarse time values to stamp inodes. This value is updated every jiffy, so any change that happens within that jiffy will end up with the same timestamp.
- [Network Filesystem Services Library](/kernel/internals/filesystems/netfs-library.md): The network filesystem services library, netfslib, is a set of functions designed to aid a network filesystem in implementing VM/VFS API operations. It takes over the normal buffered read, readahead, write and writeback and also handles…
- [NILFS2](/kernel/internals/filesystems/nilfs2.md): NILFS2 is a log-structured file system (LFS) supporting continuous snapshotting. In addition to versioning capability of the entire file system, users can even restore files mistakenly overwritten or destroyed just a few seconds ago. Since…
- [NTFS3](/kernel/internals/filesystems/ntfs3.md): NTFS3 is fully functional NTFS Read-Write driver. The driver works with NTFS versions up to 3.1. File system type to use on mount is ntfs3.
- [OCFS2 file system - online file check](/kernel/internals/filesystems/ocfs2-online-filecheck.md): This document will describe OCFS2 online file check feature.
- [OCFS2 filesystem](/kernel/internals/filesystems/ocfs2.md): OCFS2 is a general purpose extent based shared disk cluster file system with many similarities to ext3. It supports 64 bit inode numbers, and has automatically extending metadata groups which may also make it attractive for non-clustered…
- [Optimized MPEG Filesystem (OMFS)](/kernel/internals/filesystems/omfs.md): OMFS is a filesystem created by SonicBlue for use in the ReplayTV DVR and Rio Karma MP3 player. The filesystem is extent-based, utilizing block sizes from 2k to 8k, with hash-based directories. This filesystem driver may be used to read…
- [ORANGEFS](/kernel/internals/filesystems/orangefs.md): OrangeFS is an LGPL userspace scale-out parallel storage system. It is ideal for large storage problems faced by HPC, BigData, Streaming Video, Genomics, Bioinformatics.
- [Overlay Filesystem](/kernel/internals/filesystems/overlayfs.md): OverlayFS layering, copy-up and native descriptor handling in Peios.
- [Pathname lookup](/kernel/internals/filesystems/path-lookup.md): This write-up is based on three articles published at lwn.net:
- [Changes since 2.5.0:](/kernel/internals/filesystems/porting.md): ---
- [The /proc Filesystem](/kernel/internals/filesystems/proc.md): Process information, native access checks and retained procfs interfaces.
- [The QNX6 Filesystem](/kernel/internals/filesystems/qnx6.md): The qnx6fs is used by newer QNX operating system versions. (e.g. Neutrino) It got introduced in QNX 6.4.0 and is used default since 6.4.1.
- [Quota subsystem](/kernel/internals/filesystems/quota.md): Quota subsystem allows system administrator to set limits on used space and number of used inodes (inode is a filesystem structure which is associated with each file or directory) for users and/or groups. For both used space and number of…
- [Ramfs, rootfs and initramfs](/kernel/internals/filesystems/ramfs-rootfs-initramfs.md): October 17, 2005
- [relay interface (formerly relayfs)](/kernel/internals/filesystems/relay.md): The relay interface provides a means for kernel applications to efficiently log and transfer large quantities of data from the kernel to userspace via user-defined 'relay channels'.
- [User Interface for Resource Control feature (resctrl)](/kernel/internals/filesystems/resctrl.md): Intel refers to this feature as Intel Resource Director Technology(Intel(R) RDT). AMD refers to this feature as AMD Platform Quality of Service(AMD QoS).
- [ROMFS - ROM File System](/kernel/internals/filesystems/romfs.md): This is a quite dumb, read only filesystem, mainly for initial RAM disks of installation disks. It has grown up by the need of having modules linked at boot time. Using this filesystem, you get a very similar feature, and even the…
- [The seq_file Interface](/kernel/internals/filesystems/seq-file.md): Copyright 2003 Jonathan Corbet <corbet@lwn.net>
- [Shared Subtrees](/kernel/internals/filesystems/sharedsubtree.md): Consider the following situation:
- [splice and pipes](/kernel/internals/filesystems/splice.md): splice is a method for moving blocks of data around inside the kernel, without continually transferring them between the kernel and user space.
- [Squashfs 4.0 Filesystem](/kernel/internals/filesystems/squashfs.md): Squashfs is a compressed read-only filesystem for Linux.
- [sysfs - _The_ filesystem for exporting kernel objects](/kernel/internals/filesystems/sysfs.md): Patrick Mochel <mochel@osdl.org>
- [Tmpfs](/kernel/internals/filesystems/tmpfs.md): Tmpfs is a file system which keeps all of its files in virtual memory.
- [UBIFS Authentication Support](/kernel/internals/filesystems/ubifs-authentication.md): UBIFS utilizes the fscrypt framework to provide confidentiality for file contents and file names. This prevents attacks where an attacker is able to read contents of the filesystem on a single point in time. A classic example is a lost…
- [UBI File System](/kernel/internals/filesystems/ubifs.md): UBIFS file-system stands for UBI File System. UBI stands for "Unsorted Block Images". UBIFS is a flash file system, which means it is designed to work with flash devices. It is important to understand, that UBIFS is completely different to…
- [UDF file system](/kernel/internals/filesystems/udf.md): If you encounter problems with reading UDF discs using this driver, please report them according to MAINTAINERS file.
- [VFAT](/kernel/internals/filesystems/vfat.md): To use the vfat filesystem, use the filesystem type 'vfat'. i.e.:
- [Overview of the Linux Virtual File System](/kernel/internals/filesystems/vfs.md): Original author: Richard Gooch <rgooch@atnf.csiro.au>
- [virtiofs: virtio-fs host<->guest shared file system](/kernel/internals/filesystems/virtiofs.md): Copyright (C) 2019 Red Hat, Inc.
- [ZoneFS - Zone filesystem for Zoned block devices](/kernel/internals/filesystems/zonefs.md): zonefs is a very simple file system exposing each zone of a zoned block device as a file. Unlike a regular POSIX-compliant file system with native zoned block device support (e.g. f2fs), zonefs does not hide the sequential write constraint…
- [Filesystem Caching](/kernel/internals/filesystems/caching/index.md): Reference for Filesystem Caching.
- [Cache Backend API](/kernel/internals/filesystems/caching/backend-api.md): The FS-Cache system provides an API by which actual caches can be supplied to FS-Cache for it to then serve out to network filesystems and other interested parties. This API is used by:
- [Cache on Already Mounted Filesystem](/kernel/internals/filesystems/caching/cachefiles.md): CacheFiles is a caching backend that's meant to use as a cache a directory on an already mounted filesystem of a local type (such as Ext3).
- [General Filesystem Caching](/kernel/internals/filesystems/caching/fscache.md): This facility is a general purpose cache for network filesystems, though it could be used for caching other things such as ISO9660 filesystems too.
- [Network Filesystem Caching API](/kernel/internals/filesystems/caching/netfs-api.md): Fscache provides an API by which a network filesystem can make use of local caching facilities. The API is arranged around a number of principles:
- [ext4 Data Structures and Algorithms](/kernel/internals/filesystems/ext4/index.md): Reference for ext4 Data Structures and Algorithms.
- [About this Book](/kernel/internals/filesystems/ext4/about.md): This document attempts to describe the on-disk format for ext4 filesystems. The same general ideas should apply to ext2/3 filesystems as well, though they do not support all the features that ext4 supports, and the fields will be shorter.
- [Block and Inode Allocation Policy](/kernel/internals/filesystems/ext4/allocators.md): ext4 recognizes (better than ext3, anyway) that data locality is generally a desirably quality of a filesystem. On a spinning disk, keeping related blocks near each other reduces the amount of movement that the head actuator and disk must…
- [Atomic Block Writes](/kernel/internals/filesystems/ext4/atomic-writes.md): Atomic (untorn) block writes ensure that either the entire write is committed to disk or none of it is. This prevents "torn writes" during power loss or system crashes. The ext4 filesystem supports atomic writes (only with Direct I/O) on…
- [Extended Attributes](/kernel/internals/filesystems/ext4/attributes.md): Extended attributes (xattrs) are typically stored in a separate data block on the disk and referenced from inodes via inode.i_file_acl*. The first use of extended attributes seems to have been for storing file ACLs and other security data…
- [Bigalloc](/kernel/internals/filesystems/ext4/bigalloc.md): At the moment, the default size of a block is 4KiB, which is a commonly supported page size on most MMU-capable hardware. This is fortunate, as ext4 code is not prepared to handle the case where the block size exceeds the page size.…
- [Block and inode Bitmaps](/kernel/internals/filesystems/ext4/bitmaps.md): The data block bitmap tracks the usage of data blocks within the block group.
- [Block Groups](/kernel/internals/filesystems/ext4/blockgroup.md): The layout of a standard block group is approximately as follows (each of these fields is discussed in a separate section below):
- [Blocks](/kernel/internals/filesystems/ext4/blocks.md): ext4 allocates storage space in units of “blocks”. A block is a group of sectors between 1KiB and 64KiB, and the number of sectors must be an integral power of 2. Blocks are in turn grouped into larger units called block groups. Block size…
- [Checksums](/kernel/internals/filesystems/ext4/checksums.md): Starting in early 2012, metadata checksums were added to all major ext4 and jbd2 data structures. The associated feature flag is metadata_csum. The desired checksum algorithm is indicated in the superblock, though as of October 2012 the…
- [Directory Entries](/kernel/internals/filesystems/ext4/directory.md): In an ext4 filesystem, a directory is more or less a flat file that maps an arbitrary byte string (usually ASCII) to an inode number on the filesystem. There can be many directory entries across the filesystem that reference the same inode…
- [Dynamic Structures](/kernel/internals/filesystems/ext4/dynamic.md): Dynamic metadata are created on the fly when files and blocks are allocated to files.
- [Large Extended Attribute Values](/kernel/internals/filesystems/ext4/eainode.md): To enable ext4 to store extended attribute values that do not fit in the inode or in the single extended attribute block attached to an inode, the EA_INODE feature allows us to store the value in the data blocks of a regular file inode.…
- [Global Structures](/kernel/internals/filesystems/ext4/globals.md): The filesystem is sharded into a number of block groups, each of which have static metadata at fixed locations.
- [Block Group Descriptors](/kernel/internals/filesystems/ext4/group-descr.md): Each block group on the filesystem has one of these descriptors associated with it. As noted in the Layout section above, the group descriptors (if present) are the second item in the block group. The standard configuration is for each…
- [The Contents of inode.i_block](/kernel/internals/filesystems/ext4/ifork.md): Depending on the type of file an inode describes, the 60 bytes of storage in inode.i_block can be used in different ways. In general, regular files and directories will use it for file block indexing information, and special files will use…
- [Inline Data](/kernel/internals/filesystems/ext4/inlinedata.md): The inline data feature was designed to handle the case that a file's data is so tiny that it readily fits inside the inode, which (theoretically) reduces disk block consumption and reduces seeks. If the file is smaller than 60 bytes, then…
- [Inode Table](/kernel/internals/filesystems/ext4/inode-table.md): Inode tables are statically allocated at mkfs time. Each block group descriptor points to the start of the table, and the superblock records the number of inodes per group. See inode documentation <inodes> for more information on inode…
- [Index Nodes](/kernel/internals/filesystems/ext4/inodes.md): In a regular UNIX filesystem, the inode stores all the metadata pertaining to the file (time stamps, block maps, extended attributes, etc), not the directory entry. To find the information associated with a file, one must traverse the…
- [Journal (jbd2)](/kernel/internals/filesystems/ext4/journal.md): Introduced in ext3, the ext4 filesystem employs a journal to protect the filesystem against metadata inconsistencies in the case of a system crash. Up to 10,240,000 file system blocks (see man mke2fs(8) for more details on journal size…
- [Multiple Mount Protection](/kernel/internals/filesystems/ext4/mmp.md): Multiple mount protection (MMP) is a feature that protects the filesystem against multiple hosts trying to use the filesystem simultaneously. When a filesystem is opened (for mounting, or fsck, etc.), the MMP code running on the node (call…
- [Orphan file](/kernel/internals/filesystems/ext4/orphan.md): In unix there can inodes that are unlinked from directory hierarchy but that are still alive because they are open. In case of crash the filesystem has to clean up these inodes as otherwise they (and the blocks referenced from them) would…
- [High Level Design](/kernel/internals/filesystems/ext4/overview.md): An ext4 file system is split into a series of block groups. To reduce performance difficulties due to fragmentation, the block allocator tries very hard to keep each file's blocks within the same group, thereby reducing seek times. The…
- [Special inodes](/kernel/internals/filesystems/ext4/special-inodes.md): ext4 reserves some inode for special features, as follows:
- [Super Block](/kernel/internals/filesystems/ext4/super.md): The superblock records various information about the enclosing filesystem, such as block counts, inode counts, supported features, maintenance information, and more.
- [Verity files](/kernel/internals/filesystems/ext4/verity.md): ext4 supports fs-verity, which is a filesystem feature that provides Merkle tree based hashing for individual readonly files. Most of fs-verity is common to all filesystems that support it; see Documentation/filesystems/fsverity.rst…
- [FUSE (Filesystem in Userspace) Technical Documentation](/kernel/internals/filesystems/fuse/index.md): Reference for FUSE (Filesystem in Userspace) Technical Documentation.
- [FUSE-over-io-uring design documentation](/kernel/internals/filesystems/fuse/fuse-io-uring.md): This documentation covers basic details how the fuse kernel/userspace communication through io-uring is configured and works. For generic details about FUSE see fuse.rst.
- [FUSE I/O Modes](/kernel/internals/filesystems/fuse/fuse-io.md): Fuse supports the following I/O modes:
- [FUSE Passthrough](/kernel/internals/filesystems/fuse/fuse-passthrough.md): FUSE (Filesystem in Userspace) passthrough is a feature designed to improve the performance of FUSE filesystems for I/O operations. Typically, FUSE operations involve communication between the kernel and a userspace FUSE daemon, which can…
- [FUSE Overview](/kernel/internals/filesystems/fuse/fuse.md): A filesystem in which data and metadata are provided by an ordinary userspace process. The filesystem can be accessed normally through the kernel interface.
- [Global File System 2](/kernel/internals/filesystems/gfs2/index.md): GFS2 is a cluster file system. It allows a cluster of computers to simultaneously use a block device that is shared between them (with FC, iSCSI, NBD, etc). GFS2 reads and writes to the block device like a local file system, but also uses…
- [Glock internal locking rules](/kernel/internals/filesystems/gfs2/glocks.md): This documents the basic principles of the glock state machine internals. Each glock (struct gfs2_glock in fs/gfs2/incore.h) has two main (internal) locks:
- [uevents and GFS2](/kernel/internals/filesystems/gfs2/uevents.md): During the lifetime of a GFS2 mount, a number of uevents are generated. This document explains what the events are and what they are used for (by gfs_controld in gfs2-utils).
- [VFS iomap Documentation](/kernel/internals/filesystems/iomap/index.md): Reference for VFS iomap Documentation.
- [Library Design](/kernel/internals/filesystems/iomap/design.md): Introduction
- [Supported File Operations](/kernel/internals/filesystems/iomap/operations.md): Buffered I/O
- [Porting Your Filesystem](/kernel/internals/filesystems/iomap/porting.md): Why Convert?
- [NFS](/kernel/internals/filesystems/nfs/index.md): Reference for NFS.
- [NFSv4 client identifier](/kernel/internals/filesystems/nfs/client-identifier.md): This document explains how the NFSv4 protocol identifies client instances in order to maintain file open and lock state during system restarts. A special identifier and principal are maintained on each client. These can be set by…
- [Making Filesystems Exportable](/kernel/internals/filesystems/nfs/exporting.md): All filesystem operations require a dentry (or two) as a starting point. Local applications have a reference-counted hold on suitable dentries via open file descriptors or cwd/root. However remote applications that access a filesystem via…
- [Kernel NFS Server Statistics](/kernel/internals/filesystems/nfs/knfsd-stats.md): This document describes the format and semantics of the statistics which the kernel NFS server makes available to userspace. These statistics are available in several text form pseudo files, each of which is described separately below.
- [NFS LOCALIO](/kernel/internals/filesystems/nfs/localio.md): The LOCALIO auxiliary RPC protocol allows the Linux NFS client and server to reliably handshake to determine if they are on the same host. Select "NFS client and server support for LOCALIO auxiliary protocol" in menuconfig to enable…
- [NFSv4.1 Server Implementation](/kernel/internals/filesystems/nfs/nfs41-server.md): Server support for minorversion 1 can be controlled using the /proc/fs/nfsd/versions control file. The string output returned by reading this file will contain either "+4.1" or "-4.1" correspondingly.
- [NFSD IO MODES](/kernel/internals/filesystems/nfs/nfsd-io-modes.md): NFSD has historically always used buffered IO when servicing READ and WRITE operations. BUFFERED is NFSD's default IO mode, but it is possible to override that default to use either DONTCACHE or DIRECT IO modes.
- [NFSD Maintainer Entry Profile](/kernel/internals/filesystems/nfs/nfsd-maintainer-entry-profile.md): A Maintainer Entry Profile supplements the top-level process documents (found in Documentation/process/) with customs that are specific to a subsystem and its maintainers. A contributor may use this document to set their expectations and…
- [Reference counting in pnfs](/kernel/internals/filesystems/nfs/pnfs.md): The are several inter-related caches. We have layouts which can reference multiple devices, each of which can reference multiple data servers. Each data server can be referenced by multiple devices. Each device can be referenced by…
- [Reexporting NFS filesystems](/kernel/internals/filesystems/nfs/reexport.md): It is possible to reexport an NFS filesystem over NFS. However, this feature comes with a number of limitations. Before trying it, we recommend some careful research to determine whether it will work for your purposes.
- [RPC Cache](/kernel/internals/filesystems/nfs/rpc-cache.md): This document gives a brief introduction to the caching mechanisms in the sunrpc layer that is used, in particular, for NFS authentication.
- [rpcsec_gss support for kernel RPC servers](/kernel/internals/filesystems/nfs/rpc-server-gss.md): This document gives references to the standards and protocols used to implement RPCGSS authentication in kernel RPC servers such as the NFS server and the NFS client's NFSv4.0 callback server. (But note that NFSv4.1 and higher don't…
- [CIFS](/kernel/internals/filesystems/smb/index.md): Reference for CIFS.
- [Mounting root file system via SMB (cifs.ko)](/kernel/internals/filesystems/smb/cifsroot.md): Written 2019 by Paulo Alcantara <palcantara@suse.de>
- [KSMBD - SMB3 Kernel Server](/kernel/internals/filesystems/smb/ksmbd.md): KSMBD is a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network.
- [SMB Direct - SMB3 over RDMA](/kernel/internals/filesystems/smb/smbdirect.md): This document describes how to set up the Linux SMB client and server to use RDMA.
- [SPU Filesystem](/kernel/internals/filesystems/spufs/index.md): Reference for SPU Filesystem.
- [spu_create](/kernel/internals/filesystems/spufs/spu-create.md): spu_create - create a new spu context
- [spu_run](/kernel/internals/filesystems/spufs/spu-run.md): spu_run - execute an spu context
- [spufs](/kernel/internals/filesystems/spufs/spufs.md): spufs - the SPU file system
- [XFS Filesystem Documentation](/kernel/internals/filesystems/xfs/index.md): Reference for XFS Filesystem Documentation.
- [XFS Logging Design](/kernel/internals/filesystems/xfs/xfs-delayed-logging-design.md): This document describes the design and algorithms that the XFS journalling subsystem is based on. This document describes the design and algorithms that the XFS journalling subsystem is based on so that readers may familiarize themselves…
- [XFS Maintainer Entry Profile](/kernel/internals/filesystems/xfs/xfs-maintainer-entry-profile.md): XFS is a well known high-performance filesystem in the Linux kernel. The aim of this project is to provide and maintain a robust and performant filesystem.
- [XFS Online Fsck Design](/kernel/internals/filesystems/xfs/xfs-online-fsck-design.md): This document captures the design of the online filesystem check feature for XFS. The purpose of this document is threefold:
- [XFS Self Describing Metadata](/kernel/internals/filesystems/xfs/xfs-self-describing-metadata.md): The largest scalability problem facing XFS is not one of algorithmic scalability, but of verification of the filesystem structure. Scalabilty of the structures and indexes on disk and the algorithms for iterating them are adequate for…
- [Path walking and name lookup locking](/kernel/internals/filesystems/path-lookup-legacy.md): Kernel reference: Path walking and name lookup locking.
- [Notes on propagate_umount()](/kernel/internals/filesystems/propagate-umount.md): Kernel reference: Notes on propagate_umount().

## NTFE

- [Overview](/kernel/internals/ntfe/overview.md): NTFE is the Peios packet engine — where it stands in the kernel, what it replaced, how its C glue and Rust core divide the work, and the terms this chapter uses.
- [Seats and dispatch](/kernel/internals/ntfe/seats-and-dispatch.md): The netfilter hooks NTFE stands at, the dispatch law that gives every traversal exactly one proper seat per layer, and how verdicts — refusals included — are applied where they land.
- [The snapshot](/kernel/internals/ntfe/the-snapshot.md): How one traversal's facts are extracted from the sk_buff into the fixed-size seat snapshot, what the validity bits mean, and what crosses into the Rust core.
- [Evaluation](/kernel/internals/ntfe/evaluation.md): The pnp-core algorithm — trigger set, abstention and speakers, collation, the backstop — and how the bridge carries a snapshot in and a verdict plus applied effects out.
- [Policy ingestion and validation](/kernel/internals/ntfe/policy-ingestion-and-validation.md): Policy ingestion and validation: behaviour and implementation of the Peios kernel.
- [Generation publication and recovery](/kernel/internals/ntfe/generation-publication-and-recovery.md): Generation publication and recovery: behaviour and implementation of the Peios kernel.
- [The stores](/kernel/internals/ntfe/the-stores.md): The three machinery stores behind NTFE's effects — flow tags on a conntrack extension, counter tables materialized from the forest's views, and REPORT emission into KMES — with their bounds and confessions.
- [Event ring and delivery](/kernel/internals/ntfe/event-ring-and-delivery.md): Event ring and delivery: behaviour and implementation of the Peios kernel.
- [The Flow layer](/kernel/internals/ntfe/the-flow-layer.md): The second rung — one judgment per local endpoint of a flow, cached on the conntrack entry as a sentence, re-judged when the policy or the clock makes it stale, and dumped for the viewer.
- [The identity facts](/kernel/internals/ntfe/the-identity-facts.md): The third rung — who stands at each local end of a flow, read once from the socket KACS stamped, fixed for the flow's life, and judged as the Flow layer's Local and Remote facts.
- [Authoring Packet Rules](/kernel/internals/ntfe/authoring-packet-rules.md): Adapt exception, counting, and time-based policy patterns while checking the complete rule forest.

## Network labelling

- [NetLabel](/kernel/internals/netlabel/index.md): Reference for NetLabel.
- [NetLabel CIPSO/IPv4 Protocol Engine](/kernel/internals/netlabel/cipso-ipv4.md): Paul Moore, paul.moore@hp.com
- [Draft IETF CIPSO IP Security](/kernel/internals/netlabel/draft-ietf.md): Reference for Draft IETF CIPSO IP Security.
- [NetLabel Introduction](/kernel/internals/netlabel/introduction.md): Paul Moore, paul.moore@hp.com
- [NetLabel Linux Security Module Interface](/kernel/internals/netlabel/lsm-interface.md): Paul Moore, paul.moore@hp.com

## Netlink

- [Netlink Family Specifications](/kernel/internals/netlink/specs/index.md): Reference for Netlink Family Specifications.
- [Family binder netlink specification](/kernel/internals/netlink/specs/binder.md): Protocol reference for the binder Netlink family, generated from the Peios kernel specification.
- [Family conntrack netlink specification](/kernel/internals/netlink/specs/conntrack.md): Protocol reference for the conntrack Netlink family, generated from the Peios kernel specification.
- [Family dev-energymodel netlink specification](/kernel/internals/netlink/specs/dev-energymodel.md): Protocol reference for the dev-energymodel Netlink family, generated from the Peios kernel specification.
- [Family devlink netlink specification](/kernel/internals/netlink/specs/devlink.md): Protocol reference for the devlink Netlink family, generated from the Peios kernel specification.
- [Family dpll netlink specification](/kernel/internals/netlink/specs/dpll.md): Protocol reference for the dpll Netlink family, generated from the Peios kernel specification.
- [Family ethtool netlink specification](/kernel/internals/netlink/specs/ethtool.md): Protocol reference for the ethtool Netlink family, generated from the Peios kernel specification.
- [Family fou netlink specification](/kernel/internals/netlink/specs/fou.md): Protocol reference for the fou Netlink family, generated from the Peios kernel specification.
- [Family handshake netlink specification](/kernel/internals/netlink/specs/handshake.md): Protocol reference for the handshake Netlink family, generated from the Peios kernel specification.
- [Family lockd netlink specification](/kernel/internals/netlink/specs/lockd.md): Protocol reference for the lockd Netlink family, generated from the Peios kernel specification.
- [Family mptcp_pm netlink specification](/kernel/internals/netlink/specs/mptcp-pm.md): Protocol reference for the mptcp_pm Netlink family, generated from the Peios kernel specification.
- [Family net-shaper netlink specification](/kernel/internals/netlink/specs/net-shaper.md): Protocol reference for the net_shaper Netlink family, generated from the Peios kernel specification.
- [Family netdev netlink specification](/kernel/internals/netlink/specs/netdev.md): Protocol reference for the netdev Netlink family, generated from the Peios kernel specification.
- [Family nfsd netlink specification](/kernel/internals/netlink/specs/nfsd.md): Protocol reference for the nfsd Netlink family, generated from the Peios kernel specification.
- [Family nftables netlink specification](/kernel/internals/netlink/specs/nftables.md): Protocol reference for the nftables Netlink family, generated from the Peios kernel specification.
- [Family nl80211 netlink specification](/kernel/internals/netlink/specs/nl80211.md): Protocol reference for the nl80211 Netlink family, generated from the Peios kernel specification.
- [Family nlctrl netlink specification](/kernel/internals/netlink/specs/nlctrl.md): Protocol reference for the nlctrl Netlink family, generated from the Peios kernel specification.
- [Family ovpn netlink specification](/kernel/internals/netlink/specs/ovpn.md): Protocol reference for the ovpn Netlink family, generated from the Peios kernel specification.
- [Family ovs_datapath netlink specification](/kernel/internals/netlink/specs/ovs-datapath.md): Protocol reference for the ovs_datapath Netlink family, generated from the Peios kernel specification.
- [Family ovs_flow netlink specification](/kernel/internals/netlink/specs/ovs-flow.md): Protocol reference for the ovs_flow Netlink family, generated from the Peios kernel specification.
- [Family ovs_vport netlink specification](/kernel/internals/netlink/specs/ovs-vport.md): Protocol reference for the ovs_vport Netlink family, generated from the Peios kernel specification.
- [Family psp netlink specification](/kernel/internals/netlink/specs/psp.md): Protocol reference for the psp Netlink family, generated from the Peios kernel specification.
- [Family rt-addr netlink specification](/kernel/internals/netlink/specs/rt-addr.md): Protocol reference for the rt-addr Netlink family, generated from the Peios kernel specification.
- [Family rt-link netlink specification](/kernel/internals/netlink/specs/rt-link.md): Protocol reference for the rt-link Netlink family, generated from the Peios kernel specification.
- [Family rt-neigh netlink specification](/kernel/internals/netlink/specs/rt-neigh.md): Protocol reference for the rt-neigh Netlink family, generated from the Peios kernel specification.
- [Family rt-route netlink specification](/kernel/internals/netlink/specs/rt-route.md): Protocol reference for the rt-route Netlink family, generated from the Peios kernel specification.
- [Family rt-rule netlink specification](/kernel/internals/netlink/specs/rt-rule.md): Protocol reference for the rt-rule Netlink family, generated from the Peios kernel specification.
- [Family tc netlink specification](/kernel/internals/netlink/specs/tc.md): Protocol reference for the tc Netlink family, generated from the Peios kernel specification.
- [Family tcp_metrics netlink specification](/kernel/internals/netlink/specs/tcp-metrics.md): Protocol reference for the tcp_metrics Netlink family, generated from the Peios kernel specification.
- [Family team netlink specification](/kernel/internals/netlink/specs/team.md): Protocol reference for the team Netlink family, generated from the Peios kernel specification.
- [Family wireguard netlink specification](/kernel/internals/netlink/specs/wireguard.md): Protocol reference for the wireguard Netlink family, generated from the Peios kernel specification.
- [genetlink-c Netlink schema](/kernel/internals/netlink/genetlink-c-yaml.md): Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
- [genetlink-legacy Netlink schema](/kernel/internals/netlink/genetlink-legacy-yaml.md): Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
- [genetlink Netlink schema](/kernel/internals/netlink/genetlink-yaml.md): Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
- [netlink-raw Netlink schema](/kernel/internals/netlink/netlink-raw-yaml.md): Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.

## Networking

- [Networking](/kernel/internals/networking/index.md): Refer to netdev-FAQ for a guide on netdev development process specifics.
- [Netdev private dataroom for 6lowpan interfaces](/kernel/internals/networking/6lowpan.md): All 6lowpan able net devices, means all interfaces with ARPHRD_6LOWPAN, must have "struct lowpan_priv" placed at beginning of netdev_priv.
- [6pack Protocol](/kernel/internals/networking/6pack.md): This is the 6pack-mini-HOWTO, written by
- [AF_XDP](/kernel/internals/networking/af-xdp.md): AF_XDP is an address family that is optimized for high performance packet processing.
- [IP-Aliasing](/kernel/internals/networking/alias.md): IP-aliases are an obsolete way to manage multiple IP-addresses/masks per interface. Newer tools such as iproute2 support multiple address/prefixes per interface, but aliases are still supported for backwards compatibility.
- [ARCnet Hardware](/kernel/internals/networking/arcnet-hardware.md): Because so many people (myself included) seem to have obtained ARCnet cards without manuals, this file contains a quick introduction to ARCnet hardware, some cabling tips, and a listing of all jumper settings I can find. If you have any…
- [ARCnet](/kernel/internals/networking/arcnet.md): Since no one seems to listen to me otherwise, perhaps a poem will get your attention:
- [ATM](/kernel/internals/networking/atm.md): In order to use anything but the most primitive functions of ATM, several user-mode programs are required to assist the kernel. These programs and related material can be found via the ATM on Linux Web page at…
- [AX.25](/kernel/internals/networking/ax25.md): To use the amateur radio protocols within Linux you will need to get a suitable copy of the AX.25 Utilities. More detailed information about AX.25, NET/ROM and ROSE, associated programs and utilities can be found on…
- [Bare UDP Tunnelling Module Documentation](/kernel/internals/networking/bareudp.md): There are various L3 encapsulation standards using UDP being discussed to leverage the UDP based load balancing capability of different networks. MPLSoUDP (https://tools.ietf.org/html/rfc7510) is one among them.
- [batman-adv](/kernel/internals/networking/batman-adv.md): Batman advanced is a new approach to wireless networking which does no longer operate on the IP basis. Unlike the batman daemon, which exchanges information using UDP packets and sets routing tables, batman-advanced operates on ISO/OSI…
- [Linux Ethernet Bonding Driver HOWTO](/kernel/internals/networking/bonding.md): Latest update: 27 April 2011
- [Ethernet Bridging](/kernel/internals/networking/bridge.md): The IEEE 802.1Q-2022 (Bridges and Bridged Networks) standard defines the operation of bridges in computer networks. A bridge, in the context of this standard, is a device that connects two or more network segments and operates at the data…
- [SocketCAN - Controller Area Network](/kernel/internals/networking/can.md): The socketcan package is an implementation of CAN protocols (Controller Area Network) for Linux. CAN is a networking technology which has widespread use in automation, embedded devices, and automotive fields. While there have been other…
- [The UCAN Protocol](/kernel/internals/networking/can-ucan-protocol.md): UCAN is the protocol used by the microcontroller-based USB-CAN adapter that is integrated on System-on-Modules from Theobroma Systems and that is also available as a standalone USB stick.
- [cdc_mbim - Driver for CDC MBIM Mobile Broadband modems](/kernel/internals/networking/cdc-mbim.md): The cdc_mbim driver supports USB devices conforming to the "Universal Serial Bus Communications Class Subclass Specification for Mobile Broadband Interface Model" [1], which is a further development of "Universal Serial Bus Communications…
- [Checksum Offloads](/kernel/internals/networking/checksum-offloads.md): This document describes a set of techniques in the Linux networking stack to take advantage of checksum offload capabilities of various NICs.
- [DCTCP (DataCenter TCP)](/kernel/internals/networking/dctcp.md): DCTCP is an enhancement to the TCP congestion control algorithm for data center networks and leverages Explicit Congestion Notification (ECN) in the data center network to provide multi-bit feedback to the end hosts.
- [Device Memory TCP](/kernel/internals/networking/devmem.md): Device memory TCP (devmem TCP) enables receiving data directly into device memory (dmabuf). The feature is currently implemented for TCP sockets.
- [DNS Resolver Module](/kernel/internals/networking/dns-resolver.md): The DNS resolver module provides a way for kernel services to make DNS queries by way of requesting a key of key type dns_resolver. These queries are upcalled to userspace through /sbin/request-key.
- [Softnet Driver Issues](/kernel/internals/networking/driver.md): Any hardware layer address you obtain for your device should be verified. For example, for ethernet check it with linux/etherdevice.h:is_valid_ether_addr()
- [EQL Driver: Serial IP Load Balancing HOWTO](/kernel/internals/networking/eql.md): Simon "Guru Aleph-Null" Janes, simon@ncm.com
- [Netlink interface for ethtool](/kernel/internals/networking/ethtool-netlink.md): Netlink interface for ethtool uses generic netlink family ethtool (userspace application should use macros ETHTOOL_GENL_NAME and ETHTOOL_GENL_VERSION defined in <linux/ethtool_netlink.h> uapi header). This family does not use a specific…
- [FAILOVER](/kernel/internals/networking/failover.md): The failover module provides a generic interface for paravirtual drivers to register a netdev and a set of ops with a failover instance. The ops are used as event handlers that get called to handle netdev register/ unregister/link…
- [LC-trie implementation notes](/kernel/internals/networking/fib-trie.md): An end node with data. This has a copy of the relevant key, along with 'hlist' with routing table entries sorted by prefix length. See struct leaf and struct leaf_info.
- [Linux Socket Filtering aka Berkeley Packet Filter (BPF)](/kernel/internals/networking/filter.md): Socket filtering, BPF mechanics and the configured Peios JIT and policy boundaries.
- [Generic networking statistics for netlink users](/kernel/internals/networking/gen-stats.md): Statistic counters are grouped into structs:
- [Generic HDLC layer](/kernel/internals/networking/generic-hdlc.md): Krzysztof Halasa <khc@pm.waw.pl>
- [Generic Netlink](/kernel/internals/networking/generic-netlink.md): A wiki document on how to use Generic Netlink can be found here:
- [The Linux kernel GTP tunneling module](/kernel/internals/networking/gtp.md): Harald Welte <laforge@gnumonks.org> and Andreas Schultz <aschultz@tpip.net>
- [IEEE 802.15.4 Developer's Guide](/kernel/internals/networking/ieee802154.md): The IEEE 802.15.4 working group focuses on standardization of the bottom two layers: Medium Access Control (MAC) and Physical access (PHY). And there are mainly two options available for upper layers:
- [Identifier Locator Addressing (ILA)](/kernel/internals/networking/ila.md): Identifier-locator addressing (ILA) is a technique used with IPv6 that differentiates between location and identity of a network node. Part of an address expresses the immutable identity of the node, and another part indicates the location…
- [IOAM6 Sysfs variables](/kernel/internals/networking/ioam6-sysctl.md): Accept (= enabled) or ignore (= disabled) IPv6 IOAM options on ingress for this interface.
- [io_uring zero copy Rx](/kernel/internals/networking/iou-zcrx.md): io_uring zero copy Rx (ZC Rx) is a feature that removes kernel-to-user copy on the network receive path, allowing packet data to be received directly into userspace memory. This feature is different to TCP_ZEROCOPY_RECEIVE in that there…
- [IP Sysctl](/kernel/internals/networking/ip-sysctl.md): Forward Packets between interfaces.
- [IP dynamic address hack-port v0.03](/kernel/internals/networking/ip-dynaddr.md): This stuff allows diald ONESHOT connections to get established by dynamically changing packet source address (and socket's if local procs). It is implemented for TCP diald-box connections(1) and IP_MASQuerading(2).
- [IPsec](/kernel/internals/networking/ipsec.md): Here documents known IPsec corner cases which need to be keep in mind when deploy various IPsec configuration in real world production environment.
- [IPv6](/kernel/internals/networking/ipv6.md): Options for the ipv6 module are supplied as parameters at load time.
- [IPVLAN Driver HOWTO](/kernel/internals/networking/ipvlan.md): Mahesh Bandewar <maheshb AT google.com>
- [IPvs-sysctl](/kernel/internals/networking/ipvs-sysctl.md): default 10
- [ISO 15765-2 (ISO-TP)](/kernel/internals/networking/iso15765-2.md): ISO 15765-2, also known as ISO-TP, is a transport protocol specifically defined for diagnostic communication on CAN. It is widely used in the automotive industry, for example as the transport protocol for UDSonCAN (ISO 14229-3) or…
- [J1939 Documentation](/kernel/internals/networking/j1939.md): SAE J1939 defines a higher layer protocol on CAN. It implements a more sophisticated addressing scheme and extends the maximum packet size above 8 bytes. Several derived specifications exist, which differ from the original J1939 on the…
- [Linux Networking and Network Devices APIs](/kernel/internals/networking/kapi.md): PHYLINK interfaces traditional network drivers with PHYLIB, fixed-links, and SFF modules (eg, hot-pluggable SFP) that may contain PHYs. PHYLINK provides management of the link state and link modes.
- [Kernel Connection Multiplexor](/kernel/internals/networking/kcm.md): Kernel Connection Multiplexor (KCM) is a mechanism that provides a message based interface over TCP for generic application protocols. With KCM an application can efficiently send and receive application protocol messages over TCP using…
- [L2TP](/kernel/internals/networking/l2tp.md): Layer 2 Tunneling Protocol (L2TP) allows L2 frames to be tunneled over an IP network.
- [The Linux LAPB Module Interface](/kernel/internals/networking/lapb-module.md): Version 1.3
- [How to use packet injection with mac80211](/kernel/internals/networking/mac80211-injection.md): mac80211 now allows arbitrary packets to be injected down any Monitor Mode interface from userland. The packet you inject needs to be composed in the following format:
- [Management Component Transport Protocol (MCTP)](/kernel/internals/networking/mctp.md): net/mctp/ contains protocol support for MCTP, as defined by DMTF standard DSP0236. Physical interface drivers ("bindings" in the specification) are provided in drivers/net/mctp/.
- [MPLS Sysfs variables](/kernel/internals/networking/mpls-sysctl.md): Number of entries in the platform label table. It is not possible to configure forwarding for label values equal to or greater than the number of platform labels.
- [MPTCP Sysfs variables](/kernel/internals/networking/mptcp-sysctl.md): Set the maximum value of timeout after which an ADD_ADDR control message will be resent to an MPTCP peer that has not acknowledged a previous ADD_ADDR message. A dynamically estimated retransmission timeout based on the estimated…
- [Multipath TCP (MPTCP)](/kernel/internals/networking/mptcp.md): Multipath TCP or MPTCP is an extension to the standard TCP and is described in RFC 8684 (MPTCPv1). It allows a device to make use of multiple interfaces at once to send and receive TCP packets over a single MPTCP connection. MPTCP can…
- [MSG_ZEROCOPY](/kernel/internals/networking/msg-zerocopy.md): The MSG_ZEROCOPY flag enables copy avoidance for socket send calls. The feature is currently implemented for TCP, UDP and VSOCK (with virtio transport) sockets.
- [Multi-PF Netdev](/kernel/internals/networking/multi-pf-netdev.md): Background
- [HOWTO for multiqueue network device support](/kernel/internals/networking/multiqueue.md): Kernel support for multiqueue devices is always present.
- [NAPI](/kernel/internals/networking/napi.md): Duplicate implicit target name: "napi".
- [Net DIM - Generic Network Dynamic Interrupt Moderation](/kernel/internals/networking/net-dim.md): Assumptions
- [NET_FAILOVER](/kernel/internals/networking/net-failover.md): The net_failover driver provides an automated failover mechanism via APIs to create and destroy a failover master netdev and manages a primary and standby slave netdevs that get registered via the generic failover infrastructure.
- [Netconsole](/kernel/internals/networking/netconsole.md): started by Ingo Molnar <mingo@redhat.com>, 2001.09.17
- [Netdev features mess and how to get out from it alive](/kernel/internals/networking/netdev-features.md): Michał Mirosław <mirq-linux@rere.qmqm.pl>
- [Network Devices, the Kernel, and You!](/kernel/internals/networking/netdevices.md): The following is a random collection of documentation regarding network devices. It is intended for driver developers.
- [Netfilter Sysfs variables](/kernel/internals/networking/netfilter-sysctl.md): 0 - disabled (default)
- [NETIF Msg Level](/kernel/internals/networking/netif-msg.md): The design of the network interface message level setting.
- [Netmem Support for Network Drivers](/kernel/internals/networking/netmem.md): This document outlines the requirements for network drivers to support netmem, an abstract memory type that enables features like device memory TCP. By supporting netmem, drivers can work with various underlying memory types with little to…
- [Resilient Next-hop Groups](/kernel/internals/networking/nexthop-group-resilient.md): Resilient groups are a type of next-hop group that is aimed at minimizing disruption in flow routing across changes to the group composition and weights of constituent next hops.
- [Netfilter Conntrack Sysfs variables](/kernel/internals/networking/nf-conntrack-sysctl.md): 0 - disabled (default)
- [Netfilter's flowtable infrastructure](/kernel/internals/networking/nf-flowtable.md): This documentation describes the Netfilter flowtable infrastructure which allows you to define a fastpath through the flowtable datapath. This infrastructure also provides hardware offload support. The flowtable supports for the layer 3…
- [Linux NFC subsystem](/kernel/internals/networking/nfc.md): The Near Field Communication (NFC) subsystem is required to standardize the NFC device drivers development and to create an unified userspace interface.
- [OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface (TC6) Framework Support](/kernel/internals/networking/oa-tc6-framework.md): The IEEE 802.3cg project defines two 10 Mbit/s PHYs operating over a single pair of conductors. The 10BASE-T1L (Clause 146) is a long reach PHY supporting full duplex point-to-point operation over 1 km of single balanced pair of…
- [Open vSwitch datapath developer documentation](/kernel/internals/networking/openvswitch.md): The Open vSwitch kernel module allows flexible userspace control over flow-level packet processing on selected network devices. It can be used to implement a plain Ethernet switch, network device bonding, VLAN processing, network access…
- [Operational States](/kernel/internals/networking/operstates.md): Linux distinguishes between administrative and operational state of an interface. Administrative state is the result of "ip link set dev <dev> up or down" and reflects whether the administrator wants to use the device for traffic.
- [Packet MMAP](/kernel/internals/networking/packet-mmap.md): This file documents the mmap() facility available with the PACKET socket interface. This type of sockets is used for
- [Page Pool API](/kernel/internals/networking/page-pool.md): Information about page pools on the system can be accessed via the netdev genetlink family (see Documentation/netlink/specs/netdev.yaml).
- [Linux Phonet protocol family](/kernel/internals/networking/phonet.md): Phonet is a packet protocol used by Nokia cellular modems for both IPC and RPC. With the Linux Phonet socket family, Linux host processes can receive and send messages from/to the modem, or any other external device attached to the modem.…
- [PHY link topology](/kernel/internals/networking/phy-link-topology.md): The PHY link topology representation in the networking stack aims at representing the hardware layout for any given Ethernet link.
- [Ethernet ports](/kernel/internals/networking/phy-port.md): This document is a basic description of the phy_port infrastructure, introduced to represent physical interfaces of Ethernet devices.
- [PHY Abstraction Layer](/kernel/internals/networking/phy.md): Most network devices consist of set of registers which provide an interface to a MAC layer, which communicates with the physical connection through a PHY. The PHY concerns itself with negotiating link parameters with the link partner on…
- [HOWTO for the linux packet generator](/kernel/internals/networking/pktgen.md): Enable CONFIG_NET_PKTGEN to compile and build pktgen either in-kernel or as a module. A module is preferred; modprobe pktgen if needed. Once running, pktgen creates a thread for each CPU with affinity to that CPU. Monitoring and…
- [PLIP: The Parallel Line Internet Protocol Device](/kernel/internals/networking/plip.md): Donald Becker (becker@super.org) I.D.A. Supercomputing Research Center, Bowie MD 20715
- [PPP Generic Driver and Channel Interface](/kernel/internals/networking/ppp-generic.md): Paul Mackerras paulus@samba.org
- [The proc/net/tcp and proc/net/tcp6 variables](/kernel/internals/networking/proc-net-tcp.md): This document describes the interfaces /proc/net/tcp and /proc/net/tcp6. Note that these interfaces are deprecated in favor of tcp_diag.
- [PSP Security Protocol](/kernel/internals/networking/psp.md): PSP Security Protocol (PSP) was defined at Google and published in:
- [How to use radiotap headers](/kernel/internals/networking/radiotap-headers.md): Radiotap headers are variable-length and extensible, you can get most of the information you need to know on them from:
- [RDS](/kernel/internals/networking/rds.md): This readme tries to provide some background on the hows and whys of RDS, and will hopefully help you find your way around the code.
- [Linux wireless regulatory documentation](/kernel/internals/networking/regulatory.md): This document gives a brief review over how the Linux wireless regulatory infrastructure works.
- [Network Function Representors](/kernel/internals/networking/representors.md): This document describes the semantics and usage of representor netdevices, as used to control internal switching on SmartNICs. For the closely-related port representors on physical (multi-port) switches, see…
- [RxRPC Network Protocol](/kernel/internals/networking/rxrpc.md): The RxRPC protocol driver provides a reliable two-phase transport on top of UDP that can be used to perform RxRPC remote operations. This is done over sockets of AF_RXRPC family, using sendmsg() and recvmsg() with control data to send and…
- [Scaling in the Linux Networking Stack](/kernel/internals/networking/scaling.md): This document describes a set of complementary techniques in the Linux networking stack to increase parallelism and improve performance for multi-processor systems.
- [Linux Kernel SCTP](/kernel/internals/networking/sctp.md): This is the current BETA release of the Linux Kernel SCTP reference implementation.
- [LSM/SeLinux secid](/kernel/internals/networking/secid.md): flowi structure:
- [Seg6 Sysfs variables](/kernel/internals/networking/seg6-sysctl.md): Accept or drop SR-enabled IPv6 packets on this interface.
- [Segmentation Offloads](/kernel/internals/networking/segmentation-offloads.md): This document describes a set of techniques in the Linux networking stack to take advantage of segmentation offload capabilities of various NICs.
- [phylink](/kernel/internals/networking/sfp-phylink.md): phylink is a mechanism to support hot-pluggable networking modules directly connected to a MAC without needing to re-initialise the adapter on hot-plug events.
- [struct sk_buff](/kernel/internals/networking/skbuff.md): sk_buff is the main networking structure representing a packet.
- [SMC Sysctl](/kernel/internals/networking/smc-sysctl.md): Setting SMC auto corking size: SMC auto corking is like TCP auto corking from the application's perspective of view. When applications do consecutive small write()/sendmsg() system calls, we try to coalesce these small writes as much as…
- [SNMP counter](/kernel/internals/networking/snmp-counter.md): This document explains the meaning of SNMP counters.
- [NIC SR-IOV APIs](/kernel/internals/networking/sriov.md): Modern NICs are strongly encouraged to focus on implementing the switchdev model (see switchdev) to configure forwarding and security of SR-IOV functionality.
- [Interface statistics](/kernel/internals/networking/statistics.md): This document is a guide to Linux network interface statistics.
- [Stream Parser (strparser)](/kernel/internals/networking/strparser.md): The stream parser (strparser) is a utility that parses messages of an application layer protocol running over a data stream. The stream parser works in conjunction with an upper layer in the kernel to provide kernel support for application…
- [Ethernet switch device driver model (switchdev)](/kernel/internals/networking/switchdev.md): Copyright © 2014 Jiri Pirko <jiri@resnulli.us>
- [Sysfs tagging](/kernel/internals/networking/sysfs-tagging.md): (Taken almost verbatim from Eric Biederman's netns tagging patch commit msg)
- [TC Actions - Environmental Rules](/kernel/internals/networking/tc-actions-env-rules.md): The "environmental" rules for authors of any new tc actions are:
- [TC queue based filtering](/kernel/internals/networking/tc-queue-filters.md): TC can be used for directing traffic to either a set of queues or to a single queue on both the transmit and receive side.
- [Thin-streams and TCP](/kernel/internals/networking/tcp-thin.md): A wide range of Internet-based services that use reliable transport protocols display what we call thin-stream properties. This means that the application sends data with such a low rate that the retransmission mechanisms of the transport…
- [TCP Authentication Option Linux implementation (RFC5925)](/kernel/internals/networking/tcp-ao.md): TCP Authentication Option (TCP-AO) provides a TCP extension aimed at verifying segments between trusted peers. It adds a new TCP header option with a Message Authentication Code (MAC). MACs are produced from the content of a TCP segment…
- [Team](/kernel/internals/networking/team.md): https://github.com/jpirko/libteam
- [Timestamping](/kernel/internals/networking/timestamping.md): The interfaces for receiving network packages timestamps are:
- [Linux Kernel TIPC](/kernel/internals/networking/tipc.md): TIPC (Transparent Inter Process Communication) is a protocol that is specially designed for intra-cluster communication. It can be configured to transmit messages either on UDP or directly across Ethernet. Message delivery is sequence…
- [In-Kernel TLS Handshake](/kernel/internals/networking/tls-handshake.md): Transport Layer Security (TLS) is a Upper Layer Protocol (ULP) that runs over TCP. TLS provides end-to-end data integrity and confidentiality in addition to peer authentication.
- [Kernel TLS offload](/kernel/internals/networking/tls-offload.md): Linux kernel provides TLS connection offload infrastructure. Once a TCP connection is in ESTABLISHED state user space can enable the TLS Upper Layer Protocol (ULP) and install the cryptographic connection state. For details regarding the…
- [Kernel TLS](/kernel/internals/networking/tls.md): Transport Layer Security (TLS) is a Upper Layer Protocol (ULP) that runs over TCP. TLS provides end-to-end data integrity and confidentiality.
- [Transparent proxy support](/kernel/internals/networking/tproxy.md): This feature adds Linux 2.2-like transparent proxy support to current kernels. To use it, enable the socket match and the TPROXY target in your kernel config. You will need policy routing too, so be sure to enable that as well.
- [Universal TUN/TAP device driver](/kernel/internals/networking/tuntap.md): Copyright © 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
- [The UDP-Lite protocol (RFC 3828)](/kernel/internals/networking/udplite.md): UDP-Lite is a Standards-Track IETF transport protocol whose characteristic is a variable-length checksum. This has advantages for transport of multimedia (video, VoIP) over wireless networks, as partly damaged packets can still be fed into…
- [Virtual Routing and Forwarding (VRF)](/kernel/internals/networking/vrf.md): The VRF device combined with ip rules provides the ability to create virtual routing and forwarding domains (aka VRFs, VRF-lite to be specific) in the Linux network stack. One use case is the multi-tenancy problem where each tenant has…
- [Virtual eXtensible Local Area Networking documentation](/kernel/internals/networking/vxlan.md): The VXLAN protocol is a tunnelling protocol designed to solve the problem of limited VLAN IDs (4096) in IEEE 802.1q. With VXLAN the size of the identifier is expanded to 24 bits (16777216).
- [X.25 Device Driver Interface](/kernel/internals/networking/x25-iface.md): Version 1.1
- [Linux X.25 Project](/kernel/internals/networking/x25.md): As my third year dissertation at University I have taken it upon myself to write an X.25 implementation for Linux. My aim is to provide a complete X.25 Packet Layer and a LAPB module to allow for "normal" X.25 to be run using Linux. There…
- [XDP RX Metadata](/kernel/internals/networking/xdp-rx-metadata.md): This document describes how an eXpress Data Path (XDP) program can access hardware metadata related to a packet using a set of helper functions, and how it can pass that metadata on to other consumers.
- [AF_XDP TX Metadata](/kernel/internals/networking/xsk-tx-metadata.md): This document describes how to enable offloads when transmitting packets via af_xdp. Refer to xdp-rx-metadata on how to access similar metadata on the receive side.
- [CAIF](/kernel/internals/networking/caif/index.md): Contents:
- [Using Linux CAIF](/kernel/internals/networking/caif/caif.md): If you have compiled CAIF for modules do:
- [Linux CAIF](/kernel/internals/networking/caif/linux-caif.md): Copyright © ST-Ericsson AB 2010
- [Hardware Device Drivers](/kernel/internals/networking/device-drivers/index.md): Contents:
- [Asynchronous Transfer Mode (ATM) Device Drivers](/kernel/internals/networking/device-drivers-atm/index.md): Contents:
- [ATM cxacru device driver](/kernel/internals/networking/device-drivers-atm/cxacru.md): Firmware is required for this device: http://accessrunner.sourceforge.net/
- [FORE Systems PCA-200E/SBA-200E ATM NIC driver](/kernel/internals/networking/device-drivers-atm/fore200e.md): This driver adds support for the FORE Systems 200E-series ATM adapters to the Linux operating system. It is based on the earlier PCA-200E driver written by Uwe Dannowski.
- [ATM (i)Chip IA Linux Driver Source](/kernel/internals/networking/device-drivers-atm/iphase.md): READ ME FIRST
- [Conexant AccessRunner configuration converter](/kernel/internals/networking/device-drivers-atm/cxacru-cf-py.md): Converts packed little-endian configuration values into the string accepted by the adsl_config sysfs attribute. Original format caveats remain in the source.
- [Controller Area Network (CAN) Device Drivers](/kernel/internals/networking/device-drivers-can/index.md): Device drivers for CAN devices.
- [can327: ELM327 driver for Linux SocketCAN](/kernel/internals/networking/device-drivers-can/can327.md): Max Staudt <max@enpas.org>
- [CTU CAN FD Driver](/kernel/internals/networking/device-drivers-can-ctu/ctucanfd-driver.md): Author: Martin Jerabek <martin.jerabek01@gmail.com>
- [Flexcan CAN Controller driver](/kernel/internals/networking/device-drivers-can-freescale/flexcan.md): Authors: Marc Kleine-Budde <mkl@pengutronix.de>, Dario Binacchi <dario.binacchi@amarulasolutions.com>
- [Cellular Modem Device Drivers](/kernel/internals/networking/device-drivers-cellular/index.md): Contents:
- [Rmnet Driver](/kernel/internals/networking/device-drivers-cellular-qualcomm/rmnet.md): rmnet driver is used for supporting the Multiplexing and aggregation Protocol (MAP). This protocol is used by all recent chipsets using Qualcomm Technologies, Inc. modems.
- [Ethernet Device Drivers](/kernel/internals/networking/device-drivers-ethernet/index.md): Device drivers for Ethernet and Ethernet-based virtual function devices.
- [Linux and the 3Com EtherLink III Series Ethercards (driver v1.18c and higher)](/kernel/internals/networking/device-drivers-ethernet-3com/3c509.md): This file contains the instructions and caveats for v1.18c and higher versions of the 3c509 driver. You should not use the driver without reading this file.
- [3Com Vortex device driver](/kernel/internals/networking/device-drivers-ethernet-3com/vortex.md): Andrew Morton
- [Altera Triple-Speed Ethernet MAC driver](/kernel/internals/networking/device-drivers-ethernet-altera/altera-tse.md): Copyright © 2008-2014 Altera Corporation
- [Linux kernel driver for Elastic Network Adapter (ENA) family](/kernel/internals/networking/device-drivers-ethernet-amazon/ena.md): ENA is a networking interface designed to make good use of modern CPU features and system architectures.
- [Linux Driver for the AMD/Pensando(R) DSC adapter family](/kernel/internals/networking/device-drivers-ethernet-amd/pds-core.md): Copyright(c) 2023 Advanced Micro Devices, Inc
- [PCI vDPA driver for the AMD/Pensando(R) DSC adapter family](/kernel/internals/networking/device-drivers-ethernet-amd/pds-vdpa.md): AMD/Pensando vDPA VF Device Driver
- [PCI VFIO driver for the AMD/Pensando(R) DSC adapter family](/kernel/internals/networking/device-drivers-ethernet-amd/pds-vfio-pci.md): AMD/Pensando Linux VFIO PCI Device Driver Copyright(c) 2023 Advanced Micro Devices, Inc.
- [Marvell(Aquantia) AQtion Driver](/kernel/internals/networking/device-drivers-ethernet-aquantia/atlantic.md): For the aQuantia Multi-Gigabit PCI Express Family of Ethernet Adapters
- [Chelsio N210 10Gb Ethernet Network Controller](/kernel/internals/networking/device-drivers-ethernet-chelsio/cxgb.md): Driver Release Notes for Linux
- [Cirrus Logic LAN CS8900/CS8920 Ethernet Adapters](/kernel/internals/networking/device-drivers-ethernet-cirrus/cs89x0.md): Cirrus make a copy of this driver available at their website, as described below. In general, you should use the driver version which comes with your Linux distribution.
- [DM9000 Network driver](/kernel/internals/networking/device-drivers-ethernet-davicom/dm9000.md): Copyright 2008 Simtec Electronics,
- [Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux](/kernel/internals/networking/device-drivers-ethernet-dec/dmfe.md): Note: This driver doesn't have a maintainer.
- [D-Link DL2000-based Gigabit Ethernet Adapter Installation](/kernel/internals/networking/device-drivers-ethernet-dlink/dl2k.md): May 23, 2002
- [The QorIQ DPAA Ethernet Driver](/kernel/internals/networking/device-drivers-ethernet-freescale/dpaa.md): Authors: - Madalin Bucur <madalin.bucur@nxp.com> - Camelia Groza <camelia.groza@nxp.com>
- [The Gianfar Ethernet Driver](/kernel/internals/networking/device-drivers-ethernet-freescale/gianfar.md): The eTSEC controller (first included in parts from late 2005 like the 8548) has the ability to perform TCP, UDP, and IP checksums in hardware. The Linux kernel only offloads the TCP and UDP checksums (and always performs the pseudo header…
- [DPAA2 Documentation](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/index.md): Reference for DPAA2 Documentation.
- [DPAA2 DPIO (Data Path I/O) Overview](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/dpio-driver.md): This document provides an overview of the Freescale DPAA2 DPIO drivers
- [DPAA2 Ethernet driver](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/ethernet-driver.md): This file provides documentation for the Freescale DPAA2 Ethernet driver.
- [DPAA2 MAC / PHY support](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/mac-phy-support.md): The DPAA2 MAC / PHY support consists of a set of APIs that help DPAA2 network drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library.
- [DPAA2 (Data Path Acceleration Architecture Gen2) Overview](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/overview.md): This document provides an overview of the Freescale DPAA2 architecture and how it is integrated into the Linux kernel.
- [DPAA2 Switch driver](/kernel/internals/networking/device-drivers-ethernet-freescale-dpaa2/switch-driver.md): The DPAA2 Switch driver probes on the Datapath Switch (DPSW) object which can be instantiated on the following DPAA2 SoCs and their variants: LS2088A and LX2160A.
- [Linux kernel driver for Compute Engine Virtual Ethernet (gve):](/kernel/internals/networking/device-drivers-ethernet-google/gve.md): The GVE driver binds to a single PCI device id used by the virtual Ethernet device found in some Compute Engine VMs.
- [Linux Kernel Driver for Huawei Intelligent NIC(HiNIC) family](/kernel/internals/networking/device-drivers-ethernet-huawei/hinic.md): HiNIC is a network interface card for the Data Center Area.
- [Linux kernel driver for Huawei Ethernet Device Driver (hinic3) family](/kernel/internals/networking/device-drivers-ethernet-huawei/hinic3.md): The hinic3 is a network interface card (NIC) for Data Center. It supports a range of link-speed devices (10GE, 25GE, 100GE, etc.). The hinic3 devices can have multiple physical forms: LOM (Lan on Motherboard) NIC, PCIe standard NIC, OCP…
- [Linux Base Driver for the Intel(R) PRO/100 Family of Adapters](/kernel/internals/networking/device-drivers-ethernet-intel/e100.md): June 1, 2018
- [Linux Base Driver for Intel(R) Ethernet Network Connection](/kernel/internals/networking/device-drivers-ethernet-intel/e1000.md): Intel Gigabit Linux driver. Copyright(c) 1999 - 2013 Intel Corporation.
- [Linux Driver for Intel(R) Ethernet Network Connection](/kernel/internals/networking/device-drivers-ethernet-intel/e1000e.md): Intel Gigabit Linux driver. Copyright(c) 2008-2018 Intel Corporation.
- [Linux Base Driver for Intel(R) Ethernet Multi-host Controller](/kernel/internals/networking/device-drivers-ethernet-intel/fm10k.md): August 20, 2018 Copyright(c) 2015-2018 Intel Corporation.
- [Linux Base Driver for the Intel(R) Ethernet Controller 700 Series](/kernel/internals/networking/device-drivers-ethernet-intel/i40e.md): Intel 40 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.
- [Linux Base Driver for Intel(R) Ethernet Adaptive Virtual Function](/kernel/internals/networking/device-drivers-ethernet-intel/iavf.md): Intel Ethernet Adaptive Virtual Function Linux driver. Copyright(c) 2013-2018 Intel Corporation.
- [Linux Base Driver for the Intel(R) Ethernet Controller 800 Series](/kernel/internals/networking/device-drivers-ethernet-intel/ice.md): Intel ice Linux driver. Copyright(c) 2018-2021 Intel Corporation.
- [idpf Linux* Base Driver for the Intel(R) Infrastructure Data Path Function](/kernel/internals/networking/device-drivers-ethernet-intel/idpf.md): Intel idpf Linux driver. Copyright(C) 2023 Intel Corporation.
- [Linux Base Driver for Intel(R) Ethernet Network Connection](/kernel/internals/networking/device-drivers-ethernet-intel/igb.md): Intel Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.
- [Linux Base Virtual Function Driver for Intel(R) 1G Ethernet](/kernel/internals/networking/device-drivers-ethernet-intel/igbvf.md): Intel Gigabit Virtual Function Linux driver. Copyright(c) 1999-2018 Intel Corporation.
- [Linux Base Driver for the Intel(R) Ethernet 10 Gigabit PCI Express Adapters](/kernel/internals/networking/device-drivers-ethernet-intel/ixgbe.md): Intel 10 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.
- [Linux Base Virtual Function Driver for Intel(R) 10G Ethernet](/kernel/internals/networking/device-drivers-ethernet-intel/ixgbevf.md): Intel 10 Gigabit Virtual Function Linux driver. Copyright(c) 1999-2018 Intel Corporation.
- [Linux kernel networking driver for Marvell's Octeon PCI Endpoint NIC](/kernel/internals/networking/device-drivers-ethernet-marvell/octeon-ep.md): Network driver for Marvell's Octeon PCI EndPoint NIC. Copyright (c) 2020 Marvell International Ltd.
- [Linux kernel networking driver for Marvell's Octeon PCI Endpoint NIC VF](/kernel/internals/networking/device-drivers-ethernet-marvell/octeon-ep-vf.md): Network driver for Marvell's Octeon PCI EndPoint NIC VF. Copyright (c) 2020 Marvell International Ltd.
- [Marvell OcteonTx2 RVU Kernel Drivers](/kernel/internals/networking/device-drivers-ethernet-marvell/octeontx2.md): Copyright (c) 2020 Marvell International Ltd.
- [Mellanox ConnectX(R) mlx5 core VPI Network Driver](/kernel/internals/networking/device-drivers-ethernet-mellanox-mlx5/index.md): Contents:
- [Ethtool counters](/kernel/internals/networking/device-drivers-ethernet-mellanox-mlx5/counters.md): Overview
- [Enabling the driver and kconfig options](/kernel/internals/networking/device-drivers-ethernet-mellanox-mlx5/kconfig.md): CONFIG_MLX5_BRIDGE=(y/n)
- [Switchdev](/kernel/internals/networking/device-drivers-ethernet-mellanox-mlx5/switchdev.md): The mlx5 driver implements support for offloading bridge rules when in switchdev mode. Linux bridge FDBs are automatically offloaded when mlx5 switchdev representor is attached to bridge.
- [Tracepoints](/kernel/internals/networking/device-drivers-ethernet-mellanox-mlx5/tracepoints.md): mlx5 driver provides internal tracepoints for tracking and debugging using kernel tracepoints interfaces (refer to Documentation/trace/ftrace.rst).
- [Meta Platforms Host Network Interface](/kernel/internals/networking/device-drivers-ethernet-meta/fbnic.md): fbnic has three components stored on the flash which are provided in one PLDM image:
- [Hyper-V network driver](/kernel/internals/networking/device-drivers-ethernet-microsoft/netvsc.md): This driver is compatible with Windows Server 2012 R2, 2016 and Windows 10.
- [Linux Base Driver for MUCSE(R) Gigabit PCI Express Adapters](/kernel/internals/networking/device-drivers-ethernet-mucse/rnpgbe.md): Identifying Your Adapter
- [Network Flow Processor (NFP) Kernel Drivers](/kernel/internals/networking/device-drivers-ethernet-netronome/nfp.md): Overview
- [Linux Driver for the Pensando(R) Ethernet adapter family](/kernel/internals/networking/device-drivers-ethernet-pensando/ionic.md): Pensando Linux Ethernet driver. Copyright(c) 2019 Pensando Systems, Inc
- [RDMA Driver for the AMD Pensando(R) Ethernet adapter family](/kernel/internals/networking/device-drivers-ethernet-pensando/ionic-rdma.md): AMD Pensando RDMA driver. Copyright (C) 2018-2025, Advanced Micro Devices, Inc.
- [PPE Ethernet Driver for Qualcomm IPQ SoC Family](/kernel/internals/networking/device-drivers-ethernet-qualcomm-ppe/ppe.md): Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
- [SMC 9xxxx Driver](/kernel/internals/networking/device-drivers-ethernet-smsc/smc9.md): Revision 0.12
- [Linux Driver for the Synopsys(R) Ethernet Controllers "stmmac"](/kernel/internals/networking/device-drivers-ethernet-stmicro/stmmac.md): Authors: Giuseppe Cavallaro <peppe.cavallaro@st.com>, Alexandre Torgue <alexandre.torgue@st.com>, Jose Abreu <joabreu@synopsys.com>
- [Texas Instruments K3 AM65 CPSW NUSS switchdev based ethernet driver](/kernel/internals/networking/device-drivers-ethernet-ti/am65-nuss-cpsw-switchdev.md): In order to rename via udev:
- [Texas Instruments CPSW ethernet driver](/kernel/internals/networking/device-drivers-ethernet-ti/cpsw.md): The cpsw has 3 CBS shapers for each external ports. This document describes MQPRIO and CBS Qdisc offload configuration for cpsw driver based on examples. It potentially can be used in audio video bridging (AVB) and time sensitive…
- [Texas Instruments CPSW switchdev based ethernet driver](/kernel/internals/networking/device-drivers-ethernet-ti/cpsw-switchdev.md): On older udev versions renaming of ethX to swXpY will not be automatically supported
- [Texas Instruments ICSSG PRUETH ethernet driver](/kernel/internals/networking/device-drivers-ethernet-ti/icssg-prueth.md): Every ICSSG core has two Programmable Real-Time Unit(PRUs), two auxiliary Real-Time Transfer Unit (RTUs), and two Transmit Real-Time Transfer Units (TX_PRUs). Each one of these runs its own firmware. The firmwares combnined are referred as…
- [TLAN driver for Linux](/kernel/internals/networking/device-drivers-ethernet-ti/tlan.md): 1997-1998 Caldera, Inc.
- [Linux Base Driver for WangXun(R) Gigabit PCI Express Adapters](/kernel/internals/networking/device-drivers-ethernet-wangxun/ngbe.md): WangXun Gigabit Linux driver. Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd.
- [Linux Base Virtual Function Driver for Wangxun(R) Gigabit Ethernet](/kernel/internals/networking/device-drivers-ethernet-wangxun/ngbevf.md): WangXun Gigabit Virtual Function Linux driver. Copyright(c) 2015 - 2025 Beijing WangXun Technology Co., Ltd.
- [Linux Base Driver for WangXun(R) 10 Gigabit PCI Express Adapters](/kernel/internals/networking/device-drivers-ethernet-wangxun/txgbe.md): WangXun 10 Gigabit Linux driver. Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd.
- [Linux Base Virtual Function Driver for Wangxun(R) 10/25/40 Gigabit Ethernet](/kernel/internals/networking/device-drivers-ethernet-wangxun/txgbevf.md): WangXun 10/25/40 Gigabit Virtual Function Linux driver. Copyright(c) 2015 - 2025 Beijing WangXun Technology Co., Ltd.
- [Fiber Distributed Data Interface (FDDI) Device Drivers](/kernel/internals/networking/device-drivers-fddi/index.md): Contents:
- [Notes on the DEC FDDIcontroller 700 (DEFZA-xx) driver](/kernel/internals/networking/device-drivers-fddi/defza.md): DEC FDDIcontroller 700 is DEC's first-generation TURBOchannel FDDI network card, designed in 1990 specifically for the DECstation 5000 model 200 workstation. The board is a single attachment station and it was manufactured in two…
- [SysKonnect driver - SKFP](/kernel/internals/networking/device-drivers-fddi/skfp.md): © Copyright 1998-2000 SysKonnect,
- [Amateur Radio Device Drivers](/kernel/internals/networking/device-drivers-hamradio/index.md): Contents:
- [Linux Drivers for Baycom Modems](/kernel/internals/networking/device-drivers-hamradio/baycom.md): Thomas M. Sailer, HB9JNX/AE4WA, <sailer@ife.ee.ethz.ch>
- [SCC.C - Linux driver for Z8530 based HDLC cards for AX.25](/kernel/internals/networking/device-drivers-hamradio/z8530drv.md): This is a subset of the documentation. To use this driver you MUST have the full package from:
- [Wi-Fi Device Drivers](/kernel/internals/networking/device-drivers-wifi/index.md): Contents:
- [Intel(R) PRO/Wireless 2100 Driver for Linux](/kernel/internals/networking/device-drivers-wifi-intel/ipw2100.md): Support for:
- [Intel(R) PRO/Wireless 2915ABG Driver for Linux](/kernel/internals/networking/device-drivers-wifi-intel/ipw2200.md): Support for:
- [WWAN Device Drivers](/kernel/internals/networking/device-drivers-wwan/index.md): Contents:
- [IOSM Driver for Intel M.2 PCIe based Modems](/kernel/internals/networking/device-drivers-wwan/iosm.md): The IOSM (IPC over Shared Memory) driver is a WWAN PCIe host driver developed for linux or chrome platform for data exchange over PCIe interface between Host platform & Intel M.2 Modem. The driver exposes interface conforming to the MBIM…
- [t7xx driver for MTK PCIe based T700 5G modem](/kernel/internals/networking/device-drivers-wwan/t7xx.md): The t7xx driver is a WWAN PCIe host driver developed for linux or Chrome OS platforms for data exchange over PCIe interface between Host platform & MediaTek's T700 5G modem. The driver exposes an interface conforming to the MBIM protocol…
- [Linux Devlink Documentation](/kernel/internals/networking/devlink/index.md): devlink is an API to expose device information and resources not directly related to any device class, such as chip-wide/switch-ASIC-wide configuration.
- [am65-cpsw-nuss devlink support](/kernel/internals/networking/devlink/am65-nuss-cpsw-switch.md): This document describes the devlink features implemented by the am65-cpsw-nuss device driver.
- [bnxt devlink support](/kernel/internals/networking/devlink/bnxt.md): This document describes the devlink features implemented by the bnxt device driver.
- [Devlink DPIPE](/kernel/internals/networking/devlink/devlink-dpipe.md): While performing the hardware offloading process, much of the hardware specifics cannot be presented. These details are useful for debugging, and devlink-dpipe provides a standardized way to provide visibility into the offloading process.
- [Devlink E-Switch Attribute](/kernel/internals/networking/devlink/devlink-eswitch-attr.md): Devlink E-Switch supports two modes of operation: legacy and switchdev. Legacy mode operates based on traditional MAC/VLAN steering rules. Switching decisions are made based on MAC addresses, VLANs, etc. There is limited ability to offload…
- [Devlink Flash](/kernel/internals/networking/devlink/devlink-flash.md): The devlink-flash API allows updating device firmware. It replaces the older ethtool-flash mechanism, and doesn't require taking any networking locks in the kernel to perform the flash update. Example use:
- [Devlink Health](/kernel/internals/networking/devlink/devlink-health.md): The devlink health mechanism is targeted for Real Time Alerting, in order to know when something bad happened to a PCI device.
- [Devlink Info](/kernel/internals/networking/devlink/devlink-info.md): The devlink-info mechanism enables device drivers to report device (hardware and firmware) information in a standard, extensible fashion.
- [Devlink Line card](/kernel/internals/networking/devlink/devlink-linecard.md): The devlink-linecard mechanism is targeted for manipulation of line cards that serve as a detachable PHY modules for modular switch system. Following operations are provided:
- [Devlink Params](/kernel/internals/networking/devlink/devlink-params.md): devlink provides capability for a driver to expose device parameters for low level device functionality. Since devlink can operate at the device-wide level, it can be used to provide configuration that may affect multiple ports on a single…
- [Devlink Port](/kernel/internals/networking/devlink/devlink-port.md): devlink-port is a port that exists on the device. It has a logically separate ingress/egress point of the device. A devlink port can be any one of many flavours. A devlink port flavour along with port attributes describe what a port…
- [Devlink Region](/kernel/internals/networking/devlink/devlink-region.md): devlink regions enable access to driver defined address regions using devlink.
- [Devlink Reload](/kernel/internals/networking/devlink/devlink-reload.md): devlink-reload provides mechanism to reinit driver entities, applying devlink-params and devlink-resources new values. It also provides mechanism to activate firmware.
- [Devlink Resource](/kernel/internals/networking/devlink/devlink-resource.md): devlink provides the ability for drivers to register resources, which can allow administrators to see the device restrictions for a given resource, as well as how much of the given resource is currently in use. Additionally, these…
- [Devlink Selftests](/kernel/internals/networking/devlink/devlink-selftests.md): The devlink-selftests API allows executing selftests on the device.
- [Devlink Trap](/kernel/internals/networking/devlink/devlink-trap.md): Devices capable of offloading the kernel's datapath and perform functions such as bridging and routing must also be able to send specific packets to the kernel (i.e., the CPU) for processing.
- [etas_es58x devlink support](/kernel/internals/networking/devlink/etas-es58x.md): This document describes the devlink features implemented by the etas_es58x device driver.
- [hns3 devlink support](/kernel/internals/networking/devlink/hns3.md): This document describes the devlink features implemented by the hns3 device driver.
- [i40e devlink support](/kernel/internals/networking/devlink/i40e.md): This document describes the devlink features implemented by the i40e device driver.
- [ice devlink support](/kernel/internals/networking/devlink/ice.md): This document describes the devlink features implemented by the ice device driver.
- [ionic devlink support](/kernel/internals/networking/devlink/ionic.md): This document describes the devlink features implemented by the ionic device driver.
- [iosm devlink support](/kernel/internals/networking/devlink/iosm.md): This document describes the devlink features implemented by the iosm device driver.
- [ixgbe devlink support](/kernel/internals/networking/devlink/ixgbe.md): This document describes the devlink features implemented by the ixgbe device driver.
- [kvaser_pciefd devlink support](/kernel/internals/networking/devlink/kvaser-pciefd.md): This document describes the devlink features implemented by the kvaser_pciefd device driver.
- [kvaser_usb devlink support](/kernel/internals/networking/devlink/kvaser-usb.md): This document describes the devlink features implemented by the kvaser_usb device driver.
- [mlx4 devlink support](/kernel/internals/networking/devlink/mlx4.md): This document describes the devlink features implemented by the mlx4 device driver.
- [mlx5 devlink support](/kernel/internals/networking/devlink/mlx5.md): This document describes the devlink features implemented by the mlx5 device driver.
- [mlxsw devlink support](/kernel/internals/networking/devlink/mlxsw.md): This document describes the devlink features implemented by the mlxsw device driver.
- [mv88e6xxx devlink support](/kernel/internals/networking/devlink/mv88e6xxx.md): This document describes the devlink features implemented by the mv88e6xxx device driver.
- [netdevsim devlink support](/kernel/internals/networking/devlink/netdevsim.md): This document describes the devlink features supported by the netdevsim device driver.
- [nfp devlink support](/kernel/internals/networking/devlink/nfp.md): This document describes the devlink features implemented by the nfp device driver.
- [octeontx2 devlink support](/kernel/internals/networking/devlink/octeontx2.md): This document describes the devlink features implemented by the octeontx2 AF, PF and VF device drivers.
- [prestera devlink support](/kernel/internals/networking/devlink/prestera.md): This document describes the devlink features implemented by the prestera device driver.
- [qed devlink support](/kernel/internals/networking/devlink/qed.md): This document describes the devlink features implemented by the qed core device driver.
- [sfc devlink support](/kernel/internals/networking/devlink/sfc.md): This document describes the devlink features implemented by the sfc device driver for the ef10 and ef100 devices.
- [stmmac (synopsys dwmac) devlink support](/kernel/internals/networking/devlink/stmmac.md): This document describes the devlink features implemented by the stmmac device driver.
- [ti-cpsw-switch devlink support](/kernel/internals/networking/devlink/ti-cpsw-switch.md): This document describes the devlink features implemented by the ti-cpsw-switch device driver.
- [zl3073x devlink support](/kernel/internals/networking/devlink/zl3073x.md): This document describes the devlink features implemented by the zl3073x device driver.
- [Networking Diagnostics](/kernel/internals/networking/diagnostic/index.md): Reference for Networking Diagnostics.
- [Diagnostic Concept for Investigating Twisted Pair Ethernet Variants at OSI Layer 1](/kernel/internals/networking/diagnostic/twisted-pair-layer1-diagnostics.md): This documentation is designed for two primary audiences:
- [Distributed Switch Architecture](/kernel/internals/networking/dsa/index.md): Reference for Distributed Switch Architecture.
- [Broadcom RoboSwitch Ethernet switch driver](/kernel/internals/networking/dsa/b53.md): The Broadcom RoboSwitch Ethernet switch family is used in quite a range of xDSL router, cable modems and other multimedia devices.
- [Broadcom Starfighter 2 Ethernet switch driver](/kernel/internals/networking/dsa/bcm-sf2.md): Broadcom's Starfighter 2 Ethernet switch hardware block is commonly found and deployed in the following products:
- [DSA switch configuration from userspace](/kernel/internals/networking/dsa/configuration.md): The DSA switch configuration is not integrated into the main userspace network configuration suites by now and has to be performed manually.
- [Architecture](/kernel/internals/networking/dsa/dsa.md): This document describes the Distributed Switch Architecture (DSA) subsystem design principles, limitations, interactions with other subsystems, and how to develop drivers for this subsystem as well as a TODO for developers interested in…
- [LAN9303 Ethernet switch driver](/kernel/internals/networking/dsa/lan9303.md): The LAN9303 is a three port 10/100 Mbps ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host conduit network interface (e.g. fixed link).
- [NXP SJA1105 switch driver](/kernel/internals/networking/dsa/sja1105.md): The NXP SJA1105 is a family of 10 SPI-managed automotive switches:
- [mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211](/kernel/internals/networking/mac80211-hwsim/mac80211-hwsim.md): This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
- [mac80211_hwsim access-point configuration](/kernel/internals/networking/mac80211-hwsim/hostapd-conf.md): Access-point configuration for the documented mac80211_hwsim test network.
- [mac80211_hwsim station configuration](/kernel/internals/networking/mac80211-hwsim/wpa-supplicant-conf.md): Station configuration matching the documented mac80211_hwsim test network.
- [Common Networking Struct Cachelines](/kernel/internals/networking/net-cachelines/index.md): Reference for Common Networking Struct Cachelines.
- [inet_connection_sock struct fast path usage breakdown](/kernel/internals/networking/net-cachelines/inet-connection-sock.md): Reference for inet_connection_sock struct fast path usage breakdown.
- [inet_sock struct fast path usage breakdown](/kernel/internals/networking/net-cachelines/inet-sock.md): Reference for inet_sock struct fast path usage breakdown.
- [net_device struct fast path usage breakdown](/kernel/internals/networking/net-cachelines/net-device.md): Reference for net_device struct fast path usage breakdown.
- [netns_ipv4 struct fast path usage breakdown](/kernel/internals/networking/net-cachelines/netns-ipv4-sysctl.md): Reference for netns_ipv4 struct fast path usage breakdown.
- [netns_ipv4 enum fast path usage breakdown](/kernel/internals/networking/net-cachelines/snmp.md): Reference for netns_ipv4 enum fast path usage breakdown.
- [tcp_sock struct fast path usage breakdown](/kernel/internals/networking/net-cachelines/tcp-sock.md): Reference for tcp_sock struct fast path usage breakdown.
- [Power Sourcing Equipment (PSE) Documentation](/kernel/internals/networking/pse-pd/index.md): Reference for Power Sourcing Equipment (PSE) Documentation.
- [Power Sourcing Equipment (PSE) in IEEE 802.3 Standard](/kernel/internals/networking/pse-pd/introduction.md): Power Sourcing Equipment (PSE) is essential in networks for delivering power along with data over Ethernet cables. It usually refers to devices like switches and hubs that supply power to Powered Devices (PDs) such as IP cameras, VoIP…
- [PSE Power Interface (PSE PI) Documentation](/kernel/internals/networking/pse-pd/pse-pi.md): The Power Sourcing Equipment Power Interface (PSE PI) plays a pivotal role in the architecture of Power over Ethernet (PoE) systems. It is essentially a blueprint that outlines how one or multiple power sources are connected to the…
- [XFRM Framework](/kernel/internals/networking/xfrm/index.md): Reference for XFRM Framework.
- [XFRM device - offloading the IPsec computations](/kernel/internals/networking/xfrm/xfrm-device.md): Shannon Nelson <shannon.nelson@oracle.com> Leon Romanovsky <leonro@nvidia.com>
- [XFRM proc - /proc/net/xfrm_* files](/kernel/internals/networking/xfrm/xfrm-proc.md): Masahide NAKAMURA <nakam@linux-ipv6.org>
- [XFRM sync](/kernel/internals/networking/xfrm/xfrm-sync.md): The sync patches work is based on initial patches from Krisztian <hidden@balabit.hu> and others and additional patches from Jamal <hadi@cyberus.ca>.
- [XFRM Syscall](/kernel/internals/networking/xfrm/xfrm-sysctl.md): default 30 - hard timeout in seconds for acquire requests
- [mac80211 authentication and association flows](/kernel/internals/networking/mac80211-auth-assoc-deauth.md): Kernel reference: mac80211 authentication and association flows.
- [NFSv4.1 XDR source](/kernel/internals/networking/sunrpc-xdr/nfs4-1-x.md): Retained NFSv4.1 XDR declarations, including their original copyright and redistribution terms.

## Crypto

- [Crypto API](/kernel/internals/crypto/index.md): This documentation outlines the Linux kernel crypto API with its concepts, details about developing cipher implementations, employment of the API for cryptographic use cases, as well as programming examples.
- [Authenticated Encryption With Associated Data (AEAD)](/kernel/internals/crypto/api-aead.md): Reference for Authenticated Encryption With Associated Data (AEAD).
- [Asymmetric Cipher](/kernel/internals/crypto/api-akcipher.md): Reference for Asymmetric Cipher.
- [Message Digest](/kernel/internals/crypto/api-digest.md): Reference for Message Digest.
- [Scatterlist Cryptographic API](/kernel/internals/crypto/api-intro.md): The Scatterlist Crypto API takes page vectors (scatterlists) as arguments, and works directly on pages. In some cases (e.g. ECB mode ciphers), this will allow for pages to be encrypted in-place with no copying.
- [Key-agreement Protocol Primitives (KPP)](/kernel/internals/crypto/api-kpp.md): Reference for Key-agreement Protocol Primitives (KPP).
- [Random Number Generator (RNG)](/kernel/internals/crypto/api-rng.md): Reference for Random Number Generator (RNG).
- [Code Examples](/kernel/internals/crypto/api-samples.md): This code encrypts some data with AES-256-XTS. For sake of example, all inputs are random bytes, the encryption is done in-place, and it's assumed the code is running in a context where it can sleep.
- [Asymmetric Signature](/kernel/internals/crypto/api-sig.md): Reference for Asymmetric Signature.
- [Symmetric Key Cipher](/kernel/internals/crypto/api-skcipher.md): Reference for Symmetric Key Cipher.
- [Programming Interface](/kernel/internals/crypto/api.md): Reference for Programming Interface.
- [Kernel Crypto API Architecture](/kernel/internals/crypto/architecture.md): The kernel crypto API provides different API calls for the following cipher types:
- [Asymmetric / Public-key Cryptography Key Type](/kernel/internals/crypto/asymmetric-keys.md): The "asymmetric" key type is designed to be a container for the keys used in public-key cryptography, without imposing any particular restrictions on the form or mechanism of the cryptography or form of the key.
- [Asynchronous Transfers/Transforms API](/kernel/internals/crypto/async-tx-api.md): The async_tx API provides methods for describing a chain of asynchronous bulk memory transfers/transforms with support for inter-transactional dependencies. It is implemented as a dmaengine client that smooths over the details of different…
- [Crypto Engine](/kernel/internals/crypto/crypto-engine.md): The crypto engine (CE) API is a crypto queue manager.
- [Fast & Portable DES encryption & decryption](/kernel/internals/crypto/descore-readme.md): des - fast & portable DES encryption & decryption.
- [Developing Cipher Algorithms](/kernel/internals/crypto/devel-algos.md): There are three distinct types of registration functions in the Crypto API. One is used to register a generic cryptographic transformation, while the other two are specific to HASH transformations and COMPRESSion. We will discuss the…
- [Kernel Crypto API Interface Specification](/kernel/internals/crypto/intro.md): The kernel crypto API offers a rich set of cryptographic ciphers as well as other data transformation mechanisms and methods to invoke these. This document contains a description of the API and provides example code.
- [Kerberos V Cryptography API](/kernel/internals/crypto/krb5.md): This API provides Kerberos 5-style cryptography for key derivation, encryption and checksumming for use in network filesystems and can be used to implement the low-level crypto that's needed for GSSAPI.
- [SHA-3 Algorithm Collection](/kernel/internals/crypto/sha3.md): Overview
- [User Space Interface](/kernel/internals/crypto/userspace-if.md): The concepts of the kernel crypto API visible to kernel space is fully applicable to the user space interface as well. Therefore, the kernel crypto API high level discussion for the in-kernel use cases applies here as well.
- [Hardware Device Driver Specific Documentation](/kernel/internals/crypto/device-drivers/index.md): Reference for Hardware Device Driver Specific Documentation.
- [octeontx2 devlink support](/kernel/internals/crypto/device-drivers/octeontx2.md): This document describes the devlink features implemented by the octeontx2 CPT device drivers.

## Security

- [Security Documentation](/kernel/internals/security/index.md): Reference for Security Documentation.
- [IMA Template Management Mechanism](/kernel/internals/security/ima-templates.md): The original ima template is fixed length, containing the filedata hash and pathname. The filedata hash is limited to 20 bytes (md5/sha1). The pathname is a null terminated string, limited to 255 characters. To overcome these limitations…
- [SCTP](/kernel/internals/security/sctp.md): For security module support, three SCTP specific hooks have been implemented:
- [Kernel credentials](/kernel/internals/security/credentials.md): Linux credential lifetimes and their relationship to Peios tokens and access checks.
- [Digital Signature Verification API](/kernel/internals/security/digsig.md): Digital signature verification API provides a method to verify digital signature. Currently digital signatures are used by the IMA/EVM integrity protection subsystem.
- [Integrity Policy Enforcement (IPE) - Kernel Documentation](/kernel/internals/security/ipe.md): The original issue that prompted IPE's implementation was the creation of a locked-down system. This system would be born-secure, and have strong integrity guarantees over both the executable code, and specific data files on the system,…
- [Landlock LSM: kernel documentation](/kernel/internals/security/landlock.md): Landlock's goal is to create scoped access-control (i.e. sandboxing). To harden a whole system, this feature should be available to any process, including unprivileged ones. Because such a process may be compromised or backdoored (i.e.…
- [Linux Security Module Development](/kernel/internals/security/lsm-development.md): Based on https://lore.kernel.org/r/20071026073721.618b4778@laptopd505.fenrus.org, a new LSM is accepted into the kernel when its intent (a description of what it tries to protect against and in what cases one would expect to use it) has…
- [Linux Security Modules: General Security Hooks for Linux](/kernel/internals/security/lsm.md): In March 2001, the National Security Agency (NSA) gave a presentation about Security-Enhanced Linux (SELinux) at the 2.5 Linux Kernel Summit. SELinux is an implementation of flexible and fine-grained nondiscretionary access controls in the…
- [Linux Secure Attention Key (SAK) handling](/kernel/internals/security/sak.md): An operating system's Secure Attention Key is a security tool which is provided as protection against trojan password capturing programs. It is an undefeatable way of killing all programs which could be masquerading as login applications.…
- [Kernel Self-Protection](/kernel/internals/security/self-protection.md): Kernel self-protection is the design and implementation of systems and structures within the Linux kernel to protect against security flaws in the kernel itself. This covers a wide range of issues, including removing entire classes of…
- [SipHash - a short input PRF](/kernel/internals/security/siphash.md): SipHash is a cryptographically secure PRF -- a keyed hash function -- that performs very well for short inputs, hence the name. It was designed by cryptographers Daniel J. Bernstein and Jean-Philippe Aumasson. It is intended as a…
- [Confidential Computing in Linux for x86 virtualization](/kernel/internals/security/snp-tdx-threat-model.md): Motivation
- [Kernel Keys](/kernel/internals/security/keys/index.md): Reference for Kernel Keys.
- [Kernel Key Retention Service](/kernel/internals/security/keys/core.md): This service allows cryptographic keys, authentication tokens, cross-domain user mappings, and similar to be cached in the kernel for the use of filesystems and other kernel services.
- [Encrypted keys for the eCryptfs filesystem](/kernel/internals/security/keys/ecryptfs.md): ECryptfs is a stacked filesystem which transparently encrypts and decrypts each file using a randomly generated File Encryption Key (FEK).
- [Key Request Service](/kernel/internals/security/keys/request-key.md): The key request service is part of the key retention service (refer to Documentation/security/keys/core.rst). This document explains more fully how the requesting algorithm works.
- [Trusted and Encrypted Keys](/kernel/internals/security/keys/trusted-encrypted.md): Trusted and Encrypted Keys are two new key types added to the existing kernel key ring service. Both of these new types are variable length symmetric keys, and in both cases all keys are created in the kernel, and user space sees, stores,…
- [Secrets documentation](/kernel/internals/security/secrets/index.md): Reference for Secrets documentation.
- [Confidential Computing secrets](/kernel/internals/security/secrets/coco.md): This document describes how Confidential Computing secret injection is handled from the firmware to the operating system, in the EFI driver and the efi_secret kernel module.
- [Trusted Platform Module documentation](/kernel/internals/security/tpm/index.md): Reference for Trusted Platform Module documentation.
- [TPM Security](/kernel/internals/security/tpm/tpm-security.md): The object of this document is to describe how we make the kernel's use of the TPM reasonably robust in the face of external snooping and packet alteration attacks (called passive and active interposer attack in the literature). The…
- [TPM Event Log](/kernel/internals/security/tpm/tpm-event-log.md): This document briefly describes what TPM log is and how it is handed over from the preboot firmware to the operating system.
- [TPM CRB over FF-A Driver](/kernel/internals/security/tpm/tpm-ffa-crb.md): The TPM Command Response Buffer (CRB) interface is a standard TPM interface defined in the TCG PC Client Platform TPM Profile (PTP) Specification 1. The CRB provides a structured set of control registers a client uses when interacting with…
- [Firmware TPM Driver](/kernel/internals/security/tpm/tpm-ftpm-tee.md): This document describes the firmware Trusted Platform Module (fTPM) device driver.
- [TPM FIFO interface driver](/kernel/internals/security/tpm/tpm-tis.md): TCG PTP Specification defines two interface types: FIFO and CRB. The former is based on sequenced read and write operations, and the latter is based on a buffer containing the full command or response.
- [Virtual TPM Proxy Driver for Linux Containers](/kernel/internals/security/tpm/tpm-vtpm-proxy.md): This document describes the virtual Trusted Platform Module (vTPM) proxy device driver for Linux containers.
- [Virtual TPM interface for Xen](/kernel/internals/security/tpm/xen-tpmfront.md): Authors: Matthew Fioravante (JHUAPL), Daniel De Graaf (NSA)

## CPU frequency

- [CPUFreq - CPU frequency and voltage scaling code in the Linux(TM) kernel](/kernel/internals/cpu-freq/index.md): Author: Dominik Brodowski <linux@brodo.de>
- [General description of the CPUFreq core and CPUFreq notifiers](/kernel/internals/cpu-freq/core.md): Dominik Brodowski <linux@brodo.de>
- [How to Implement a new CPUFreq Processor Driver](/kernel/internals/cpu-freq/cpu-drivers.md): Authors:
- [General Description of sysfs CPUFreq Stats](/kernel/internals/cpu-freq/cpufreq-stats.md): information for users

## Power

- [Power Management](/kernel/internals/power/index.md): Reference for Power Management.
- [APM or ACPI?](/kernel/internals/power/apm-acpi.md): If you have a relatively recent x86 mobile, desktop, or server system, odds are it supports either Advanced Power Management (APM) or Advanced Configuration and Power Interface (ACPI). ACPI is the newer of the two technologies and puts…
- [Debugging hibernation and suspend](/kernel/internals/power/basic-pm-debugging.md): 2007 Rafael J. Wysocki <rjw@sisk.pl>, GPL
- [Charger Manager](/kernel/internals/power/charger-manager.md): 2011 MyungJoo Ham <myungjoo.ham@samsung.com>, GPL
- [Testing suspend and resume support in device drivers](/kernel/internals/power/drivers-testing.md): 2007 Rafael J. Wysocki <rjw@sisk.pl>, GPL
- [Energy Model of devices](/kernel/internals/power/energy-model.md): The Energy Model (EM) framework serves as an interface between drivers knowing the power consumed by devices at various performance levels, and the kernel subsystems willing to use that information to make energy-aware decisions.
- [Freezing of tasks](/kernel/internals/power/freezing-of-tasks.md): 2007 Rafael J. Wysocki <rjw@sisk.pl>, GPL
- [Operating Performance Points (OPP) Library](/kernel/internals/power/opp.md): 2009-2010 Nishanth Menon <nm@ti.com>, Texas Instruments Incorporated
- [PCI Power Management](/kernel/internals/power/pci.md): Copyright (c) 2010 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
- [PM Quality Of Service Interface](/kernel/internals/power/pm-qos-interface.md): This interface provides a kernel and user mode interface for registering performance expectations by drivers, subsystems and user space applications on one of the parameters.
- [Linux power supply class](/kernel/internals/power/power-supply-class.md): Power supply class used to represent battery, UPS, AC or DC power supply properties to user-space.
- [Runtime Power Management Framework for I/O Devices](/kernel/internals/power/runtime-pm.md): 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
- [How to get s2ram working](/kernel/internals/power/s2ram.md): 2006 Linus Torvalds 2006 Pavel Machek
- [Debugging Kernel Shutdown Hangs with pstore](/kernel/internals/power/shutdown-debugging.md): If the system hangs while shutting down, the kernel logs may need to be retrieved to debug the issue.
- [Interaction of Suspend code (S3) with the CPU hotplug infrastructure](/kernel/internals/power/suspend-and-cpuhotplug.md): 2011 - 2014 Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
- [System Suspend and Device Interrupts](/kernel/internals/power/suspend-and-interrupts.md): Copyright (C) 2014 Intel Corp. Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
- [Using swap files with software suspend (swsusp)](/kernel/internals/power/swsusp-and-swap-files.md): 2006 Rafael J. Wysocki <rjw@sisk.pl>
- [How to use dm-crypt and swsusp together](/kernel/internals/power/swsusp-dmcrypt.md): Author: Andreas Steinmetz <ast@domdv.de>
- [Swap suspend](/kernel/internals/power/swsusp.md): Some warnings, first.
- [swsusp/S3 tricks](/kernel/internals/power/tricks.md): Pavel Machek <pavel@ucw.cz>
- [Documentation for userland software suspend interface](/kernel/internals/power/userland-swsusp.md): 2006 Rafael J. Wysocki <rjw@sisk.pl>
- [Video issues with S3 resume](/kernel/internals/power/video.md): 2003-2006, Pavel Machek
- [Dynamic Thermal Power Management framework](/kernel/internals/power/powercap/dtpm.md): On the embedded world, the complexity of the SoC leads to an increasing number of hotspots which need to be monitored and mitigated as a whole in order to prevent the temperature to go above the normative and legally stated 'skin…
- [Power Capping Framework](/kernel/internals/power/powercap/powercap.md): The power capping framework provides a consistent interface between the kernel and the user space that allows power capping drivers to expose the settings to user space in a uniform way.
- [Regulator Consumer Driver Interface](/kernel/internals/power/regulator/consumer.md): This text describes the regulator interface for consumer device drivers. Please see overview.txt for a description of the terms used in this text.
- [Regulator API design notes](/kernel/internals/power/regulator/design.md): This document provides a brief, partially structured, overview of some of the design considerations which impact the regulator API design.
- [Regulator Machine Driver Interface](/kernel/internals/power/regulator/machine.md): The regulator machine driver interface is intended for board/machine specific initialisation code to configure the regulator subsystem.
- [Linux voltage and current regulator framework](/kernel/internals/power/regulator/overview.md): This framework is designed to provide a standard kernel interface to control voltage and current regulators.
- [Regulator Driver Interface](/kernel/internals/power/regulator/regulator.md): The regulator driver interface is relatively simple and designed to allow regulator drivers to register their services with the core framework.

## Virtualisation

- [Virtualization Support](/kernel/internals/virt/index.md): Reference for Virtualization Support.
- [Guest halt polling](/kernel/internals/virt/guest-halt-polling.md): The cpuidle_haltpoll driver, with the haltpoll governor, allows the guest vcpus to poll for a specified amount of time before halting.
- [Nitro Enclaves](/kernel/internals/virt/ne-overview.md): Nitro Enclaves (NE) is a new Amazon Elastic Compute Cloud (EC2) capability that allows customers to carve out isolated compute environments within EC2 instances [1].
- [Paravirt_ops](/kernel/internals/virt/paravirt-ops.md): Linux provides support for different hypervisor virtualization technologies. Historically, different binary kernels would be required in order to support different hypervisors; this restriction was removed with pv_ops. Linux pv_ops is a…
- [ACRN Hypervisor](/kernel/internals/virt/acrn/index.md): Reference for ACRN Hypervisor.
- [ACRN CPUID bits](/kernel/internals/virt/acrn/cpuid.md): A guest VM running on an ACRN hypervisor can check some of its features using CPUID.
- [ACRN Hypervisor Introduction](/kernel/internals/virt/acrn/introduction.md): The ACRN Hypervisor is a Type 1 hypervisor, running directly on bare-metal hardware. It has a privileged management VM, called Service VM, to manage User VMs and do I/O emulation.
- [I/O request handling](/kernel/internals/virt/acrn/io-request.md): An I/O request of a User VM, which is constructed by the hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. Details of I/O request handling are described…
- [The Definitive SEV Guest API Documentation](/kernel/internals/virt/coco/sev-guest.md): The SEV API is a set of ioctls that are used by the guest or hypervisor to get or set a certain aspect of the SEV virtual machine. The ioctls belong to the following classes:
- [TDX Guest API Documentation](/kernel/internals/virt/coco/tdx-guest.md): The TDX guest driver exposes IOCTL interfaces via the /dev/tdx-guest misc device to allow userspace to get certain TDX guest-specific details.
- [Hyper-V Enlightenments](/kernel/internals/virt/hyperv/index.md): Reference for Hyper-V Enlightenments.
- [Clocks and Timers](/kernel/internals/virt/hyperv/clocks.md): On arm64, Hyper-V virtualizes the ARMv8 architectural system counter and timer. Guest VMs use this virtualized hardware as the Linux clocksource and clockevents via the standard arm_arch_timer.c driver, just as they would on bare metal.…
- [Confidential Computing VMs](/kernel/internals/virt/hyperv/coco.md): Hyper-V can create and run Linux guests that are Confidential Computing (CoCo) VMs. Such VMs cooperate with the physical processor to better protect the confidentiality and integrity of data in the VM's memory, even in the face of a…
- [Hibernating Guest VMs](/kernel/internals/virt/hyperv/hibernation.md): Linux supports the ability to hibernate itself in order to save power. Hibernation is sometimes called suspend-to-disk, as it writes a memory image to disk and puts the hardware into the lowest possible power state. Upon resume from…
- [Overview](/kernel/internals/virt/hyperv/overview.md): The Linux kernel contains a variety of code for running as a fully enlightened guest on Microsoft's Hyper-V hypervisor. Hyper-V consists primarily of a bare-metal hypervisor plus a virtual machine management service running in the parent…
- [VMBus](/kernel/internals/virt/hyperv/vmbus.md): VMBus is a software construct provided by Hyper-V to guest VMs. It consists of a control path and common facilities used by synthetic devices that Hyper-V presents to guest VMs. The control path is used to offer synthetic devices to the…
- [PCI pass-thru devices](/kernel/internals/virt/hyperv/vpci.md): In a Hyper-V guest VM, PCI pass-thru devices (also called virtual PCI devices, or vPCI devices) are physical PCI devices that are mapped directly into the VM's physical address space. Guest device drivers can interact directly with the…
- [KVM](/kernel/internals/virt/kvm/index.md): Reference for KVM.
- [The Definitive KVM (Kernel-based Virtual Machine) API Documentation](/kernel/internals/virt/kvm/api.md): The kvm API is centered around different kinds of file descriptors and ioctls that can be issued to these file descriptors. An initial open("/dev/kvm") obtains a handle to the kvm subsystem; this handle can be used to issue system ioctls.…
- [The KVM halt polling system](/kernel/internals/virt/kvm/halt-polling.md): The KVM halt polling system provides a feature within KVM whereby the latency of a guest can, under some circumstances, be reduced by polling in the host for some time period after the guest has elected to no longer run by cedeing. That…
- [KVM Lock Overview](/kernel/internals/virt/kvm/locking.md): The acquisition orders for mutexes are as follows:
- [The PPC KVM paravirtual interface](/kernel/internals/virt/kvm/ppc-pv.md): The basic execution principle by which KVM on PowerPC works is to run all kernel space code in PR=1 which is user space. This way we trap all privileged instructions and can emulate them accordingly.
- [Review checklist for kvm patches](/kernel/internals/virt/kvm/review-checklist.md): The patch must follow Documentation/process/coding-style.rst and Documentation/process/submitting-patches.rst.
- [KVM VCPU Requests](/kernel/internals/virt/kvm/vcpu-requests.md): KVM supports an internal API enabling threads to request a VCPU thread to perform some activity. For example, a thread may request a VCPU to flush its TLB with a VCPU request. The API consists of the following functions:
- [ARM](/kernel/internals/virt/kvm-arm/index.md): Reference for ARM.
- [ARM firmware pseudo-registers interface](/kernel/internals/virt/kvm-arm/fw-pseudo-registers.md): KVM handles the hypercall services as requested by the guests. New hypercall services are regularly made available by the ARM specification or by KVM (as vendor services) if they make sense from a virtualization point of view.
- [Internal ABI between the kernel and HYP](/kernel/internals/virt/kvm-arm/hyp-abi.md): This file documents the interaction between the Linux kernel and the hypervisor layer when running Linux as a hypervisor (for example KVM). It doesn't cover the interaction of the kernel with the hypervisor when running as a guest (under…
- [KVM/arm64-specific hypercalls exposed to guests](/kernel/internals/virt/kvm-arm/hypercalls.md): This file documents the KVM/arm64-specific hypercalls which may be exposed by KVM/arm64 to guest operating systems. These hypercalls are issued using the HVC instruction according to version 1.1 of the Arm SMC Calling Convention…
- [PTP_KVM support for arm/arm64](/kernel/internals/virt/kvm-arm/ptp-kvm.md): PTP_KVM is used for high precision time sync between host and guests. It relies on transferring the wall clock and counter value from the host to the guest using a KVM-specific hypercall.
- [Paravirtualized time support for arm64](/kernel/internals/virt/kvm-arm/pvtime.md): Arm specification DEN0057/A defines a standard for paravirtualised time support for AArch64 guests:
- [vCPU feature selection on arm64](/kernel/internals/virt/kvm-arm/vcpu-features.md): KVM/arm64 provides two mechanisms that allow userspace to configure the CPU features presented to the guest.
- [Devices](/kernel/internals/virt/kvm-devices/index.md): Reference for Devices.
- [ARM Virtual Interrupt Translation Service (ITS)](/kernel/internals/virt/kvm-devices/arm-vgic-its.md): KVM_DEV_TYPE_ARM_VGIC_ITS ARM Interrupt Translation Service Controller
- [ARM Virtual Generic Interrupt Controller v3 and later (VGICv3)](/kernel/internals/virt/kvm-devices/arm-vgic-v3.md): KVM_DEV_TYPE_ARM_VGIC_V3 ARM Generic Interrupt Controller v3.0
- [ARM Virtual Generic Interrupt Controller v2 (VGIC)](/kernel/internals/virt/kvm-devices/arm-vgic.md): Device types supported:
- [MPIC interrupt controller](/kernel/internals/virt/kvm-devices/mpic.md): Device types supported:
- [FLIC (floating interrupt controller)](/kernel/internals/virt/kvm-devices/s390-flic.md): FLIC handles floating (non per-cpu) interrupts, i.e. I/O, service and some machine check interruptions. All interrupts are stored in a per-vm list of pending interrupts. FLIC performs operations on this list.
- [Generic vcpu interface](/kernel/internals/virt/kvm-devices/vcpu.md): The virtual cpu "device" also accepts the ioctls KVM_SET_DEVICE_ATTR, KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same struct kvm_device_attr as other devices, but targets VCPU-wide settings and controls.
- [VFIO virtual device](/kernel/internals/virt/kvm-devices/vfio.md): Device types supported:
- [Generic vm interface](/kernel/internals/virt/kvm-devices/vm.md): The virtual machine "device" also accepts the ioctls KVM_SET_DEVICE_ATTR, KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same struct kvm_device_attr as other devices, but targets VM-wide settings and controls.
- [XICS interrupt controller](/kernel/internals/virt/kvm-devices/xics.md): Device type supported: KVM_DEV_TYPE_XICS
- [POWER9 eXternal Interrupt Virtualization Engine (XIVE Gen1)](/kernel/internals/virt/kvm-devices/xive.md): KVM_DEV_TYPE_XIVE POWER9 XIVE Interrupt Controller generation 1
- [KVM device bindings](/kernel/internals/virt/kvm-devices/readme.md): Kernel reference: KVM device bindings.
- [KVM for LoongArch systems](/kernel/internals/virt/kvm-loongarch/index.md): Reference for KVM for LoongArch systems.
- [The LoongArch paravirtual interface](/kernel/internals/virt/kvm-loongarch/hypercalls.md): KVM hypercalls use the HVCL instruction with code 0x100 and the hypercall number is put in a0. Up to five arguments may be placed in registers a1 - a5. The return value is placed in v0 (an alias of a0).
- [KVM for s390 systems](/kernel/internals/virt/kvm-s390/index.md): Reference for KVM for s390 systems.
- [The s390 DIAGNOSE call on KVM](/kernel/internals/virt/kvm-s390/s390-diag.md): KVM on s390 supports the DIAGNOSE call for making hypercalls, both for native hypercalls and for selected hypercalls found on other s390 hypervisors.
- [s390 (IBM Z) Boot/IPL of Protected VMs](/kernel/internals/virt/kvm-s390/s390-pv-boot.md): The memory of Protected Virtual Machines (PVMs) is not accessible to I/O or the hypervisor. In those cases where the hypervisor needs to access the memory of a PVM, that memory must be made accessible. Memory made accessible to the…
- [s390 (IBM Z) Protected Virtualization dumps](/kernel/internals/virt/kvm-s390/s390-pv-dump.md): Dumping a VM is an essential tool for debugging problems inside it. This is especially true when a protected VM runs into trouble as there's no way to access its memory and registers from the outside while it's running.
- [s390 (IBM Z) Ultravisor and Protected VMs](/kernel/internals/virt/kvm-s390/s390-pv.md): Protected virtual machines (PVM) are KVM VMs that do not allow KVM to access VM state like guest memory or guest registers. Instead, the PVMs are mostly managed by a new entity called Ultravisor (UV). The UV provides an API that can be…
- [KVM for x86 systems](/kernel/internals/virt/kvm-x86/index.md): Reference for KVM for x86 systems.
- [Secure Encrypted Virtualization (SEV)](/kernel/internals/virt/kvm-x86/amd-memory-encryption.md): Secure Encrypted Virtualization (SEV) is a feature found on AMD processors.
- [KVM CPUID bits](/kernel/internals/virt/kvm-x86/cpuid.md): A guest running on a kvm host, can check some of its features using cpuid. This is not always guaranteed to work, since userspace can mask-out some, or even all KVM-related cpuid features before launching a guest.
- [Known limitations of CPU virtualization](/kernel/internals/virt/kvm-x86/errata.md): Whenever perfect emulation of a CPU feature is impossible or too hard, KVM has to choose between not implementing the feature at all or introducing behavioral differences between virtual machines and bare metal systems.
- [Linux KVM Hypercall](/kernel/internals/virt/kvm-x86/hypercalls.md): KVM Hypercalls have a three-byte sequence of either the vmcall or the vmmcall instruction. The hypervisor can replace it with instructions that are guaranteed to be supported.
- [Intel Trust Domain Extensions (TDX)](/kernel/internals/virt/kvm-x86/intel-tdx.md): Intel's Trust Domain Extensions (TDX) protect confidential guest VMs from the host and physical attacks. A CPU-attested software module called 'the TDX module' runs inside a new CPU isolated range to provide the functionalities to manage…
- [The x86 kvm shadow mmu](/kernel/internals/virt/kvm-x86/mmu.md): The mmu (in arch/x86/kvm, files mmu.[ch] and paging_tmpl.h) is responsible for presenting a standard x86 mmu to the guest, while translating guest physical addresses to host physical addresses.
- [KVM-specific MSRs](/kernel/internals/virt/kvm-x86/msr.md): KVM makes use of some custom MSRs to service some requests.
- [Nested VMX](/kernel/internals/virt/kvm-x86/nested-vmx.md): On Intel processors, KVM uses Intel's VMX (Virtual-Machine eXtensions) to easily and efficiently run guest operating systems. Normally, these guests cannot themselves be hypervisors running their own guests, because in VMX, guests cannot…
- [Running nested guests with KVM](/kernel/internals/virt/kvm-x86/running-nested-guests.md): A nested guest is the ability to run a guest inside another guest (it can be KVM-based or a different hypervisor). The straightforward example is a KVM guest that in turn runs on a KVM guest (the rest of this document is built on this…
- [Timekeeping Virtualization for X86-Based Architectures](/kernel/internals/virt/kvm-x86/timekeeping.md): One of the most complicated parts of the X86 platform, and specifically, the virtualization of this platform is the plethora of timing devices available and the complexity of emulating those devices. In addition, virtualization of time…
- [UML HowTo](/kernel/internals/virt/uml/user-mode-linux-howto-v2.md): Introduction

## Accounting

- [Accounting](/kernel/internals/accounting/index.md): Reference for Accounting.
- [Control Groupstats](/kernel/internals/accounting/cgroupstats.md): Control Groupstats is inspired by the discussion at https://lore.kernel.org/r/461CF883.2030308@sw.ru and implements per cgroup statistics as suggested by Andrew Morton in…
- [Delay accounting](/kernel/internals/accounting/delay-accounting.md): Tasks encounter delays in execution when they wait for some kernel resource to become available e.g. a runnable task may wait for a free CPU to run on.
- [PSI - Pressure Stall Information](/kernel/internals/accounting/psi.md): When CPU, memory or IO devices are contended, workloads experience latency spikes, throughput losses, and run the risk of OOM kills.
- [The struct taskstats](/kernel/internals/accounting/taskstats-struct.md): This document contains an explanation of the struct taskstats fields.
- [Per-task statistics interface](/kernel/internals/accounting/taskstats.md): Taskstats is a netlink-based interface for sending per-task and per-process statistics from the kernel to userspace.

## Timers

- [Timers](/kernel/internals/timers/index.md): Reference for Timers.
- [Delay and sleep mechanisms](/kernel/internals/timers/delay-sleep-functions.md): This document seeks to answer the common question: "What is the RightWay (TM) to insert a delay?"
- [High resolution timers and dynamic ticks design notes](/kernel/internals/timers/highres.md): Further information can be found in the paper of the OLS 2006 talk "hrtimers and beyond". The paper is part of the OLS 2006 Proceedings Volume 1, which can be found on the OLS website:…
- [High Precision Event Timer Driver for Linux](/kernel/internals/timers/hpet.md): The High Precision Event Timer (HPET) hardware follows a specification by Intel and Microsoft, revision 1.
- [hrtimers - subsystem for high-resolution kernel timers](/kernel/internals/timers/hrtimers.md): This patch introduces a new subsystem for high-resolution kernel timers.
- [NO_HZ: Reducing Scheduling-Clock Ticks](/kernel/internals/timers/no-hz.md): This document describes Kconfig options and boot parameters that can reduce the number of scheduling-clock interrupts, thereby improving energy efficiency and reducing OS jitter. Reducing OS jitter is important for some types of…
- [Clock sources, Clock events, sched_clock() and delay timers](/kernel/internals/timers/timekeeping.md): This document tries to briefly explain some basic kernel timekeeping abstractions. It partly pertains to the drivers usually found in drivers/clocksource in the kernel tree, but the code may be spread out across the kernel.
