Linux Kernel Internals and Development (LFD420)

Learn how to develop for the Linux kernel. In this course you’ll learn how Linux is architected, the basic methods for developing on the kernel, and how to efficiently work with the Linux developer community. If you are interested in learning about the Linux kernel, this is absolutely the definitive course on the subject.

$3250 Enroll Get A Quote

Course Overview

This course is designed to provides experienced programmers with a solid understanding of the Linux kernel. In addition to a detailed look at the theory and philosophy behind the Linux kernel, you’ll also participate in extensive hands-on exercises and demonstrations designed to give you the necessary tools to develop and debug Linux kernel code.

Show More

In this course you’ll learn:

  • How Linux is architected
  • How kernel algorithms work
  • Hardware and memory management
  • Modularization techniques and debugging
  • How the kernel developer community operates and how to efficiently work with it.
  • And much more.

The information in this course will work with any major Linux distribution.


3/2/2020 - 3/5/2020
GuaranteedThis course has reached its minimum class size and is guaranteed to run on the scheduled date.
$3250 Add to cart Generate A Quote
4/13/2020 - 4/16/2020
$3250 Add to cart Generate A Quote
5/18/2020 - 5/21/2020
$3250 Add to cart Generate A Quote
6/22/2020 - 6/25/2020
$3250 Add to cart Generate A Quote
If none of these fits your schedule, check out our Partner offerings >

Course Outline

  1. Introduction
    • Objectives
    • Who You Are
    • The Linux Foundation
    • Linux Foundation Training
    • Linux Distributions
    • Platforms
    • Preparing Your System
    • Using and Downloading a Virtual Machine
    • Things change in Linux
    • Documentation and Links
    • Course Registration
  2. Preliminaries
    • Procedures
    • Kernel Versions
    • Kernel Sources and Use of git
  3. How to Work in OSS Projects **
    • Overview on How to Contribute Properly
    • Stay Close to Mainline for Security and Quality
    • Study and Understand the Project DNA
    • Figure Out What Itch You Want to Scratch
    • Identify Maintainers and Their Work Flows and Methods
    • Get Early Input and Work in the Open
    • Contribute Incremental Bits, Not Large Code Dumps
    • Leave Your Ego at the Door: Don’t Be Thin-Skinned
    • Be Patient, Develop Long Term Relationships, Be Helpful
  4. Kernel Architecture I
    • UNIX and Linux **
    • Monolithic and Micro Kernels
    • Object-Oriented Methods
    • Main Kernel Tasks
    • User-Space and Kernel-Space
    • Kernel Mode Linux **
  5. Kernel Programming Preview
    • Error Numbers and Getting Kernel Output
    • Task Structure
    • Memory Allocation
    • Transferring Data between User and Kernel Spaces
    • Linked Lists
    • String to Number Conversions
    • Jiffies
    • Labs
  6. Modules
    • What are Modules?
    • A Trivial Example
    • Compiling Modules
    • Modules vs Built-in
    • Module Utilities
    • Automatic Loading/Unloading of Modules
    • Module Usage Count
    • The module struct
    • Module Licensing
    • Exporting Symbols
    • Resolving Symbols **
    • Labs
  7. Kernel Architecture II
    • Processes, Threads, and Tasks
    • Process Context
    • Kernel Preemption
    • Real Time Preemption Patch
    • Dynamic Kernel Patching
    • Run-time Alternatives **
    • Porting to a New Platform **
    • Labs
  8. Kernel Initialization
    • Overview of System Initialization
    • System Boot
    • Das U-Boot for Embedded Systems**
  9. Kernel Configuration and Compilation
    • Installation and Layout of the Kernel Source
    • Kernel Browsers
    • Kernel Configuration Files
    • Kernel Building and Makefiles
    • initrd and initramfs
    • Labs
  10. System Calls
    • What are System Calls?
    • Available System Calls
    • How System Calls are Implemented
    • Adding a New System Call
    • Labs
  11. Kernel Style and General Considerations
    • Coding Style
    • kernel-doc **
    • Using Generic Kernel Routines and Methods
    • Making a Kernel Patch
    • sparse
    • Using likely() and unlikely()
    • Writing Portable Code, CPU, 32/64-bit, Endianness
    • Writing for SMP
    • Writing for High Memory Systems
    • Power Management
    • Keeping Security in Mind
    • Mixing User- and Kernel-Space Headers **
    • Labs
  12. Race Conditions and Synchronization Methods
    • Concurrency and Synchronization Methods
    • Atomic Operations
    • Bit Operations
    • Spinlocks
    • Seqlocks
    • Disabling Preemption
    • Mutexes
    • Semaphores
    • Completion Functions
    • Read-Copy-Update (RCU)
    • Reference Counts
    • Labs
  13. SMP and Threads
    • SMP Kernels and Modules
    • Processor Affinity
    • SMP Algorithms – Scheduling, Locking, etc.
    • Per-CPU Variables **
    • Labs
  14. Processes
    • What are Processes?
    • The task_struct
    • Creating User Processes and Threads
    • Creating Kernel Threads
    • Destroying Processes and Threads
    • Executing User-Space Processes From Within the Kernel
    • Labs
  15. Process Limits and Capabilities **
    • Process Limits
    • Capabilities
    • Labs
  16. Monitoring and Debugging
    • Debuginfo Packages
    • Tracing and Profiling
    • sysctl
    • SysRq Key
    • oops Messages
    • Kernel Debuggers
    • debugfs
    • Labs
  17. Scheduling
    • Main Scheduling Tasks
    • SMP
    • Scheduling Priorities
    • Scheduling System Calls
    • The 2.4 schedule() Function
    • O(1) Scheduler
    • Time Slices and Priorities
    • Load Balancing
    • Priority Inversion and Priority Inheritance **
    • The CFS Scheduler
    • Calculating Priorities and Fair Times
    • Scheduling Classes
    • CFS Scheduler Details
    • Labs
  18. Memory Addressing
    • Virtual Memory Management
    • Systems With and Without MMU and the TLB
    • Memory Addresses
    • High and Low Memory
    • Memory Zones
    • Special Device Nodes
    • NUMA
    • Paging
    • Page Tables
    • page structure
    • Kernel Samepage Merging (KSM) **
    • Labs
  19. Huge Pages
    • Huge Page Support
    • libhugetlbfs
    • Transparent Huge Pages
    • Labs
  20. Memory Allocation
    • Requesting and Releasing Pages
    • Buddy System
    • Slabs and Cache Allocations
    • Memory Pools
    • kmalloc()
    • vmalloc()
    • Early Allocations and bootmem()
    • Memory Defragmentation
    • Labs
  21. Process Address Space
    • Allocating User Memory and Address Spaces
    • Locking Pages
    • Memory Descriptors and Regions
    • Access Rights
    • Allocating and Freeing Memory Regions
    • Page Faults
    • Labs
  22. Disk Caches and Swapping
    • Caches
    • Page Cache Basics
    • What is Swapping?
    • Swap Areas
    • Swapping Pages In and Out
    • Controlling Swappiness
    • The Swap Cache
    • Reverse Mapping **
    • OOM Killer
    • Labs
  23. Device Drivers**
    • Types of Devices
    • Device Nodes
    • Character Drivers
    • An Example
    • Labs
  24. Signals
    • What are Signals?
    • Available Signals
    • System Calls for Signals
    • Sigaction
    • Signals and Threads
    • How the Kernel Installs Signal Handlers
    • How the Kernel Sends Signals
    • How the Kernel Invokes Signal Handlers
    • Real Time Signals
    • Labs
  25. Closing and Evaluation Survey

** These sections may be considered in part or in whole as optional. They contain either background reference material, specialized topics, or advanced subjects. The instructor may choose to cover or not cover them depending on classroom experience and time constraints


Students should be proficient in the C programming language, basic Linux (UNIX) utilities such as ls, grep and tar, and be comfortable with any of the available text editors (e.g. emacs, vi, etc.) Experience with any major Linux distribution is helpful but not strictly required.


“Well structured and organised content.”  Jan 2020


“Excellent content delivery by trainer.”  Jan 2020


“Behan is amazing, he really knows everything there is to know about Linux Internals and he lectures with a good spirit and funny remarks.”  Jan 2020


“It was a nice refresher for a lot of Linux internal fundamentals for me personally. Well taught and concise.”  Dec 2019


I have increased my skills and knowledge.”  Nov 2019


The instructor effectively delivered the material.”  Nov 2019


The study material was well designed and useful.”  Nov 2019


The laboratory exercises were well designed and useful.”  Nov 2019


The instructor was well prepared for the class.”  Nov 2019


Based on this experience I would take more training.”  Nov 2019


Based on this experience I would recommend training to others.”  Nov 2019


The instructor was an expert on the topics covered.”  Nov 2019


The instructor answered questions thoroughly and helpfully.”  Nov 2019


“Fun and educational, lots of interesting details, cool labs for interactivity, I learned a lot!”  Oct 2019


“Really opened my eyes to Linux internals. feel like I can get started with Linux kernel dev and have more insight into how to interface with kernel.”  Oct 2019


“The instructor spent time on the white board with schematics prior to digging in some complicated matters in the study book. That made the understanding much easier! Also the instructor had a deep and wide knowledge of the linux kernel and could answer meaningfully all questions. The course itself helped me with filling many gaps in my understanding of the linux kernel architecture.”  Oct 2019

At a Glance

Delivery Method

Live Online (Virtual)

Delivery Method

Live (Classroom)


  • 4 days of Instructor-led class time
  • Hands-on Labs & Assignments
  • Resources & Course Manual
  • Certificate of Completion
  • Free Chromebook

Experience Level


Course Rating



Training 5 or more individuals?
Get a Corporate Quote >


Get training and a free Chromebook.

When you train with The Linux Foundation you’re already getting the best open source training straight from the source. And now, we are including a free Chromebook with the purchase of select Linux Foundation instructor-led training courses to help you get the most out of your training experience.

Learn More