Skip to main content

Linux Kernel Roadmap

全书学习路线与篇章总览

工程路线总览39 篇 · 195 章

From Confusion to Insight: An Engineering-Level Linux Kernel Roadmap

Part 1: Kernel Worldview and Engineering Mental Model​

01

Chapter 1: Linux Kernel Resource Management Model

5 节

进入本章正文 →

02

Chapter 2: The Programmers Confusion About the Kernel

5 节

进入本章正文 →

03

Chapter 3: Core Kernel Design Forces

5 节

进入本章正文 →

04

Chapter 4: The Four Great Paths Through the Kernel

5 节

进入本章正文 →

05

Chapter 5: How This Handbook Should Be Read

5 节

进入本章正文 →

Part 2: Kernel Source Tree and Code Navigation​

01

Chapter 6: The Shape of the Kernel Source Tree

5 节

进入本章正文 →

02

Chapter 7: Finding Entry Points in a Huge Codebase

5 节

进入本章正文 →

03

Chapter 8: Reading Kernel Data Structures

5 节

进入本章正文 →

04

Chapter 9: Following Call Chains with State and Context

5 节

进入本章正文 →

05

Chapter 10: Building a Personal Kernel Reading Workflow

5 节

进入本章正文 →

Part 3: Kernel Code Grammar, Core APIs, and C Runtime Constraints​

01

Chapter 11: Kernel C Runtime Constraints

5 节

进入本章正文 →

02

Chapter 12: Core Kernel Data Structures

5 节

进入本章正文 →

03

Chapter 13: Kernel Error Handling and Return Conventions

5 节

进入本章正文 →

04

Chapter 14: Kernel Logging and Diagnostics Grammar

5 节

进入本章正文 →

05

Chapter 15: Coding Style, Review Expectations, and Maintainability

5 节

进入本章正文 →

Part 4: Kconfig, Kbuild, Modules, and Kernel Images​

01

Chapter 16: Kernel Configuration with Kconfig

5 节

进入本章正文 →

02

Chapter 17: Kernel Build System with Kbuild

5 节

进入本章正文 →

03

Chapter 18: Loadable Kernel Modules

5 节

进入本章正文 →

04

Chapter 19: Kernel Images, vmlinux, bzImage, and initramfs

5 节

进入本章正文 →

05

Chapter 20: Engineering a Reproducible Kernel Build

5 节

进入本章正文 →

Part 5: Boot Sequence, Initcalls, and Early Kernel Initialization​

01

Chapter 21: From Firmware to Bootloader

5 节

进入本章正文 →

02

Chapter 22: Kernel Decompression and Early Architecture Setup

5 节

进入本章正文 →

03

Chapter 23: Kernel Command Line and Early Parameters

5 节

进入本章正文 →

04

Chapter 24: Initcall Levels and Subsystem Initialization

5 节

进入本章正文 →

05

Chapter 25: Debugging Early Boot Failures

5 节

进入本章正文 →

Part 6: Kernel Objects, Lifetimes, References, and Error Paths​

01

Chapter 26: Kernel Objects as C Structures with Lifetimes

5 节

进入本章正文 →

02

Chapter 27: Reference Counting and Ownership Transfer

5 节

进入本章正文 →

03

Chapter 28: Resource Acquisition and Release Ordering

5 节

进入本章正文 →

04

Chapter 29: Object Registration, Lookup, and Teardown

5 节

进入本章正文 →

05

Chapter 30: Failure Paths as the Real Test of Kernel Design

5 节

进入本章正文 →

Part 7: Observability Interfaces procfs, sysfs, debugfs, tracefs, and dmesg​

01

Chapter 31: procfs as a Runtime View of Processes and Kernel State

5 节

进入本章正文 →

02

Chapter 32: sysfs as a Device and Object Model Interface

5 节

进入本章正文 →

03

Chapter 33: debugfs as a Developer-Controlled Debug Surface

5 节

进入本章正文 →

04

Chapter 34: tracefs and the Kernel Tracing Interface

5 节

进入本章正文 →

05

Chapter 35: dmesg, printk, and Runtime Evidence Collection

5 节

进入本章正文 →

Part 8: User-Kernel Boundary and System Call Path​

01

Chapter 36: User Code Entry into the Kernel

5 节

进入本章正文 →

02

Chapter 37: System Call Tables, Entry Code, and ABI Stability

5 节

进入本章正文 →

03

Chapter 38: Copying Data Across the User-Kernel Boundary

5 节

进入本章正文 →

04

Chapter 39: File Descriptors, Handles, and Kernel Objects

5 节

进入本章正文 →

05

Chapter 40: Failure, errno, and Boundary-Level Diagnostics

5 节

进入本章正文 →

Part 9: Process, Thread, Task Struct, and Execution Context​

01

Chapter 41: task_struct as the Kernels Process Object

5 节

进入本章正文 →

02

Chapter 42: Process Creation with fork, clone, and exec

5 节

进入本章正文 →

03

Chapter 43: Threads, Thread Groups, and Shared Resources

5 节

进入本章正文 →

04

Chapter 44: Process States, Sleep, Wakeup, and Signals

5 节

进入本章正文 →

05

Chapter 45: Execution Contexts Process, Interrupt, and Kernel Thread

5 节

进入本章正文 →

Part 10: Scheduler Architecture, CFS, Real-Time Classes, and CPU Time​

01

Chapter 46: Scheduler Classes and the Scheduling Framework

5 节

进入本章正文 →

02

Chapter 47: CFS, vruntime, Weights, and Fairness

5 节

进入本章正文 →

03

Chapter 48: Real-Time Scheduling Classes and Latency Guarantees

5 节

进入本章正文 →

04

Chapter 49: CPU Affinity, Load Balancing, and Multi-Core Scheduling

5 节

进入本章正文 →

05

Chapter 50: Diagnosing Scheduling Latency and Starvation

5 节

进入本章正文 →

Part 11: Context Switching, Preemption, Timers, and Timekeeping​

01

Chapter 51: Context Switch Saved State and Resume Path

5 节

进入本章正文 →

02

Chapter 52: Kernel Preemption Models and Voluntary Preemption

5 节

进入本章正文 →

03

Chapter 53: Timer Infrastructure and High-Resolution Timers

5 节

进入本章正文 →

04

Chapter 54: Timekeeping, Jiffies, Clocksource, and Clockevents

5 节

进入本章正文 →

05

Chapter 55: Latency Sources in Preemption and Timer Paths

5 节

进入本章正文 →

Part 12: Interrupts, Exceptions, Softirq, Tasklet, and Workqueue​

01

Chapter 56: CPU Exceptions and Hardware Interrupt Entry

5 节

进入本章正文 →

02

Chapter 57: Interrupt Controllers, IRQ Domains, and IRQ Descriptors

5 节

进入本章正文 →

03

Chapter 58: Top Halves, Bottom Halves, and Deferred Execution

5 节

进入本章正文 →

04

Chapter 59: Softirq, Tasklet, Workqueue, and Threaded IRQs

5 节

进入本章正文 →

05

Chapter 60: Interrupt Storms, Latency, and Debugging Strategies

5 节

进入本章正文 →

Part 13: Concurrency, Locking, Atomics, Memory Barriers, and RCU​

01

Chapter 61: Kernel Concurrency Context Lifetime and Ordering

5 节

进入本章正文 →

02

Chapter 62: Spinlocks, Mutexes, Semaphores, and Reader-Writer Locks

5 节

进入本章正文 →

03

Chapter 63: Atomic Operations and Memory Ordering

5 节

进入本章正文 →

04

Chapter 64: Memory Barriers and CPU Reordering

5 节

进入本章正文 →

05

Chapter 65: RCU Read-Copy-Update as a Kernel-Scale Synchronization Model

5 节

进入本章正文 →

Part 14: Virtual Memory, Address Spaces, and Page Tables​

01

Chapter 66: Virtual Address Spaces and mm_struct

5 节

进入本章正文 →

02

Chapter 67: Page Tables, Page Table Walks, and TLBs

5 节

进入本章正文 →

03

Chapter 68: User Address Space vs Kernel Address Space

5 节

进入本章正文 →

04

Chapter 69: VMA, mmap, and Address Space Layout

5 节

进入本章正文 →

05

Chapter 70: Page Table Debugging and Address Translation Evidence

5 节

进入本章正文 →

Part 15: Physical Memory, Zones, NUMA, and Page Allocator​

01

Chapter 71: Physical Pages, struct page, and Memory Models

5 节

进入本章正文 →

02

Chapter 72: Zones, Watermarks, and Allocation Constraints

5 节

进入本章正文 →

03

Chapter 73: Buddy Allocator and Page Allocation Paths

5 节

进入本章正文 →

04

Chapter 74: NUMA Nodes, Locality, and Memory Policy

5 节

进入本章正文 →

05

Chapter 75: Diagnosing Physical Memory Fragmentation and Pressure

5 节

进入本章正文 →

Part 16: Kernel Memory Allocation Slab, Slub, Vmalloc, and Per-CPU Memory​

01

Chapter 76: Kernel Allocator Families and Allocation Context

5 节

进入本章正文 →

02

Chapter 77: kmalloc, kfree, and Allocation Flags

5 节

进入本章正文 →

03

Chapter 78: Slab and Slub Object Caches

5 节

进入本章正文 →

04

Chapter 79: vmalloc and Non-Contiguous Kernel Virtual Memory

5 节

进入本章正文 →

05

Chapter 80: Per-CPU Memory and Scalable Allocation Patterns

5 节

进入本章正文 →

Part 17: Page Cache, Writeback, Reclaim, Compaction, and OOM​

01

Chapter 81: Page Cache as the Center of File IO

5 节

进入本章正文 →

02

Chapter 82: Dirty Pages, Writeback, and Flusher Threads

5 节

进入本章正文 →

03

Chapter 83: Memory Reclaim, LRU Lists, and kswapd

5 节

进入本章正文 →

04

Chapter 84: Compaction, Fragmentation, and Huge Page Pressure

5 节

进入本章正文 →

05

Chapter 85: OOM Killer, Memory Death, and Survival Diagnostics

5 节

进入本章正文 →

Part 18: Memory Mapping, Page Faults, Copy-on-Write, and Huge Pages​

01

Chapter 86: Page Fault Entry and Fault Classification

5 节

进入本章正文 →

02

Chapter 87: Anonymous Memory and File-Backed Mapping

5 节

进入本章正文 →

03

Chapter 88: Copy-on-Write After fork

5 节

进入本章正文 →

04

Chapter 89: Transparent Huge Pages and HugeTLB

5 节

进入本章正文 →

05

Chapter 90: Debugging Major Faults, Minor Faults, and Memory Surprises

5 节

进入本章正文 →

Part 19: File Descriptors, VFS, Inode, Dentry, and Superblock​

01

Chapter 91: File Descriptors and the Process File Table

5 节

进入本章正文 →

02

Chapter 92: VFS as the Filesystem Abstraction Layer

5 节

进入本章正文 →

03

Chapter 93: inode, dentry, file, and super_block

5 节

进入本章正文 →

04

Chapter 94: Path Lookup, Mounts, and Namespace-Aware Resolution

5 节

进入本章正文 →

05

Chapter 95: VFS Failure Modes and Filesystem-Level Evidence

5 节

进入本章正文 →

Part 20: Filesystem Implementations ext4, XFS, Btrfs, and Pseudo Filesystems​

01

Chapter 96: How Real Filesystems Plug into VFS

5 节

进入本章正文 →

02

Chapter 97: ext4 Journaling, Extents, and Metadata Consistency

5 节

进入本章正文 →

03

Chapter 98: XFS Scalability, Allocation Groups, and Large Filesystems

5 节

进入本章正文 →

04

Chapter 99: Btrfs Copy-on-Write, Checksums, and Subvolumes

5 节

进入本章正文 →

05

Chapter 100: Pseudo Filesystems as Kernel Interfaces

5 节

进入本章正文 →

Part 21: Page Cache IO, Direct IO, Async IO, and io_uring​

01

Chapter 101: Buffered IO and the Page Cache Path

5 节

进入本章正文 →

02

Chapter 102: Direct IO and Bypassing the Page Cache

5 节

进入本章正文 →

03

Chapter 103: Asynchronous IO and Completion Models

5 节

进入本章正文 →

04

Chapter 104: io_uring as a Modern Linux IO Interface

5 节

进入本章正文 →

05

Chapter 105: IO Path Selection and Performance Tradeoffs

5 节

进入本章正文 →

Part 22: Block Layer, Bio, Request Queues, Schedulers, and Multi-Queue​

01

Chapter 106: From Filesystem Requests to Block IO

5 节

进入本章正文 →

02

Chapter 107: bio Request and the Block IO Data Model

5 节

进入本章正文 →

03

Chapter 108: Request Queues and IO Schedulers

5 节

进入本章正文 →

04

Chapter 109: blk-mq and Multi-Queue Scalability

5 节

进入本章正文 →

05

Chapter 110: Tracing Block Latency and Queueing Behavior

5 节

进入本章正文 →

Part 23: Storage Devices, NVMe, SCSI, Device Mapper, and Filesystem Reliability​

01

Chapter 111: Storage Stack from Block Layer to Device

5 节

进入本章正文 →

02

Chapter 112: SCSI and the Legacy Storage Model

5 节

进入本章正文 →

03

Chapter 113: NVMe Queues, Commands, and High-Performance Storage

5 节

进入本章正文 →

04

Chapter 114: Device Mapper, LVM, RAID, and Layered Block Devices

5 节

进入本章正文 →

05

Chapter 115: Reliability, Flush, FUA, Barriers, and Crash Consistency

5 节

进入本章正文 →

Part 24: Device Model, Kobject, Sysfs, Driver Core, and Device Lifetime​

01

Chapter 116: Linux Device Model as a Kernel Object Hierarchy

5 节

进入本章正文 →

02

Chapter 117: kobject, kset, ktype, and Reference Lifetime

5 节

进入本章正文 →

03

Chapter 118: Device, Driver, Bus, and Class Relationships

5 节

进入本章正文 →

04

Chapter 119: Sysfs Representation of Kernel Devices

5 节

进入本章正文 →

05

Chapter 120: Device Lifetime Bugs and Driver Core Diagnostics

5 节

进入本章正文 →

Part 25: Bus Frameworks Platform, PCI, USB, I2C, SPI, ACPI, and Device Tree​

01

Chapter 121: Bus Frameworks as Driver Matching and Resource Models

5 节

进入本章正文 →

02

Chapter 122: Platform Devices and Board-Level Description

5 节

进入本章正文 →

03

Chapter 123: PCI Enumeration, BARs, MSI, and Configuration Space

5 节

进入本章正文 →

04

Chapter 124: USB, I2C, and SPI Device Models

5 节

进入本章正文 →

05

Chapter 125: ACPI and Device Tree as Hardware Description Mechanisms

5 节

进入本章正文 →

Part 26: Character Devices, Block Devices, Network Devices, and Misc Drivers​

01

Chapter 126: Character Device Registration and file_operations

5 节

进入本章正文 →

02

Chapter 127: Block Device Driver Model and Request Handling

5 节

进入本章正文 →

03

Chapter 128: Network Device Registration and net_device Operations

5 节

进入本章正文 →

04

Chapter 129: Misc Drivers and Simple Kernel Interfaces

5 节

进入本章正文 →

05

Chapter 130: Choosing the Correct Driver Abstraction

5 节

进入本章正文 →

Part 27: IRQ, DMA, MMIO, IOMMU, Cache Coherency, and Hardware Resources​

01

Chapter 131: MMIO and Register-Level Hardware Control

5 节

进入本章正文 →

02

Chapter 132: IRQ Request, Handling, Affinity, and Teardown

5 节

进入本章正文 →

03

Chapter 133: DMA Mapping, Streaming DMA, and Consistent DMA

5 节

进入本章正文 →

04

Chapter 134: IOMMU, Address Translation, and Device Isolation

5 节

进入本章正文 →

05

Chapter 135: Cache Coherency Problems in Real Hardware Interaction

5 节

进入本章正文 →

Part 28: Power Management, Hotplug, Firmware Loading, and Runtime PM​

01

Chapter 136: System Sleep, Suspend, Resume, and Wakeup

5 节

进入本章正文 →

02

Chapter 137: Runtime Power Management and Device Idle States

5 节

进入本章正文 →

03

Chapter 138: CPU Hotplug, Memory Hotplug, and Device Hotplug

5 节

进入本章正文 →

04

Chapter 139: Firmware Loading and Device Initialization Dependencies

5 节

进入本章正文 →

05

Chapter 140: Power Management Failure Modes in Drivers

5 节

进入本章正文 →

Part 29: Socket Layer, sk_buff, Routing, Netfilter, and TCP IP Stack​

01

Chapter 141: Socket API and Kernel Socket Objects

5 节

进入本章正文 →

02

Chapter 142: sk_buff as the Network Packet Object

5 节

进入本章正文 →

03

Chapter 143: Receive Path and Transmit Path Through the Stack

5 节

进入本章正文 →

04

Chapter 144: Routing, Neighbor Tables, and Netfilter Hooks

5 节

进入本章正文 →

05

Chapter 145: TCP IP State, Congestion, and Packet Diagnostics

5 节

进入本章正文 →

Part 30: Network Device Drivers, NAPI, Queues, Offloads, and Packet Scheduling​

01

Chapter 146: Network Device Driver Registration and netdev_ops

5 节

进入本章正文 →

02

Chapter 147: RX and TX Rings, Descriptors, and DMA

5 节

进入本章正文 →

03

Chapter 148: NAPI Polling and Interrupt Mitigation

5 节

进入本章正文 →

04

Chapter 149: Checksum, TSO, GRO, GSO, and Hardware Offloads

5 节

进入本章正文 →

05

Chapter 150: Queue Disciplines, Traffic Control, and Packet Scheduling

5 节

进入本章正文 →

Part 31: High-Performance Networking XDP, eBPF, Zero-Copy, and AF_XDP​

01

Chapter 151: Traditional Network Stack Cost Model

5 节

进入本章正文 →

02

Chapter 152: XDP and Early Packet Processing

5 节

进入本章正文 →

03

Chapter 153: eBPF Programs, Maps, Verifier, and Attach Points

5 节

进入本章正文 →

04

Chapter 154: Zero-Copy Paths and AF_XDP

5 节

进入本章正文 →

05

Chapter 155: Observing and Optimizing High-Performance Packet Pipelines

5 节

进入本章正文 →

Part 32: Namespaces, Cgroups, Resource Control, and Container Internals​

01

Chapter 156: Namespaces as Kernel-Level Views of the System

5 节

进入本章正文 →

02

Chapter 157: PID, Mount, Network, User, IPC, UTS, and Time Namespaces

5 节

进入本章正文 →

03

Chapter 158: Cgroups as Resource Accounting and Control

5 节

进入本章正文 →

04

Chapter 159: Container Runtime Interaction with Kernel Primitives

5 节

进入本章正文 →

05

Chapter 160: Debugging Isolation and Resource Limit Problems

5 节

进入本章正文 →

Part 33: Credentials, Capabilities, Permissions, LSM, Seccomp, and Audit​

01

Chapter 161: Credentials, UID GID, and Permission Checks

5 节

进入本章正文 →

02

Chapter 162: Capabilities and Privilege Decomposition

5 节

进入本章正文 →

03

Chapter 163: LSM Hooks and Kernel Security Policy

5 节

进入本章正文 →

04

Chapter 164: Seccomp and System Call Filtering

5 节

进入本章正文 →

05

Chapter 165: Audit, Attack Surface, and Security Observability

5 节

进入本章正文 →

Part 34: Kernel Parameters, Sysctl, Control Interfaces, and Runtime Tuning​

01

Chapter 166: Kernel Command Line Parameters and Early Runtime Control

5 节

进入本章正文 →

02

Chapter 167: Module Parameters and Driver-Specific Tuning

5 节

进入本章正文 →

03

Chapter 168: sysctl as a Runtime Kernel Control Interface

5 节

进入本章正文 →

04

Chapter 169: procfs, sysfs, and debugfs Control Surfaces

5 节

进入本章正文 →

05

Chapter 170: Tuning Safely on a Live System

5 节

进入本章正文 →

Part 35: Kernel Debugging printk, Dynamic Debug, ftrace, perf, kdump, and crash​

01

Chapter 171: printk, pr_debug, and Dynamic Debug

5 节

进入本章正文 →

02

Chapter 172: ftrace, Function Graph Tracing, and Tracepoints

5 节

进入本章正文 →

03

Chapter 173: perf for CPU, Scheduler, and Kernel Hot Paths

5 节

进入本章正文 →

04

Chapter 174: kdump and vmcore Collection

5 节

进入本章正文 →

05

Chapter 175: crash Utility and Post-Mortem Kernel Analysis

5 节

进入本章正文 →

Part 36: Kernel Performance Engineering for CPU Memory IO Network and Lock Contention​

01

Chapter 176: Building a Kernel Performance Investigation Model

5 节

进入本章正文 →

02

Chapter 177: CPU Hot Paths, Scheduler Latency, and Runqueue Pressure

5 节

进入本章正文 →

03

Chapter 178: Memory Pressure, Reclaim, Cache Misses, and NUMA Effects

5 节

进入本章正文 →

04

Chapter 179: IO Latency, Queueing, Writeback, and Storage Bottlenecks

5 节

进入本章正文 →

05

Chapter 180: Network Throughput, Packet Loss, Lock Contention, and Scalability

5 节

进入本章正文 →

Part 37: Kernel Testing KUnit, Kselftest, LTP, Fuzzing, Sanitizers, and Fault Injection​

01

Chapter 181: Kernel Testing Boundary and Failure Model

5 节

进入本章正文 →

02

Chapter 182: KUnit for In-Kernel Unit Testing

5 节

进入本章正文 →

03

Chapter 183: kselftest and User-Space Driven Kernel Tests

5 节

进入本章正文 →

04

Chapter 184: Fuzzing, syzkaller, and Bug Discovery

5 节

进入本章正文 →

05

Chapter 185: Sanitizers, Fault Injection, and Regression Prevention

5 节

进入本章正文 →

Part 38: Kernel Patch Workflow, Maintainers, Reviews, Regressions, and Upstream Contribution​

01

Chapter 186: Understanding the Linux Kernel Development Process

5 节

进入本章正文 →

02

Chapter 187: Preparing Patches, Commit Messages, and Signed-off-by

5 节

进入本章正文 →

03

Chapter 188: MAINTAINERS, Mailing Lists, and Review Etiquette

5 节

进入本章正文 →

04

Chapter 189: Handling Review Feedback, Revisions, and Regressions

5 节

进入本章正文 →

05

Chapter 190: From Local Fix to Upstream Contribution

5 节

进入本章正文 →

Part 39: Modern Kernel Evolution PREEMPT_RT, Livepatching, Rust, Confidential Computing, and Future Directions​

01

Chapter 191: PREEMPT_RT and the Push Toward Deterministic Latency

5 节

进入本章正文 →

02

Chapter 192: Livepatching and Updating a Running Kernel

5 节

进入本章正文 →

03

Chapter 193: Rust for Linux and Memory-Safe Kernel Components

5 节

进入本章正文 →

04

Chapter 194: Confidential Computing and Hardware-Assisted Isolation

5 节

进入本章正文 →

05

Chapter 195: Future Directions of Linux Kernel Engineering

5 节

进入本章正文 →