Jump to ratings and reviews
Rate this book

Linux Kernel Programming: A comprehensive and practical guide to kernel internals, writing modules, and kernel synchronization

Rate this book
Endorsements

“This book offers a modern and thorough introduction to Linux kernel development for the 6.x series. It includes hard-to-find insights and low-level coverage. It's a strong recommendation for beginners and a helpful refresher for experienced kernel developers.”

Roman Storozhenko, Senior Linux Kernel Developer at Intel Corporation, Linux Kernel Contributor, Firmware Engineer, Intel® Xeon® RDT Expert & Contributor

Gain a solid practical understanding and sufficient theoretical insight into Linux kernel internals while learning to write high-quality kernel module code and understanding the complexities of kernel synchronization

Purchase of the print or Kindle book includes a free eBook in PDF format.

Key FeaturesDiscover how to write Linux kernel and module code for real-world products on the 6.1 LTS kernelImplement industry-grade techniques in real-world scenarios for fast, efficient memory allocation and data synchronizationUnderstand and exploit kernel architecture, CPU scheduling, and kernel synchronization techniquesBook DescriptionThe 2nd Edition of Linux Kernel Programming is an updated, comprehensive guide for those new to Linux kernel development. Built around the latest 6.1 Long-Term Support (LTS) Linux kernel, it explores key features and enhancements. With the Civil Infrastructure Project extending support for the 6.1 Super LTS (SLTS) kernel until August 2033, this book will remain relevant for years to come.

You'll learn how to build the Linux kernel from source and write your first kernel module using the powerful Loadable Kernel Module (LKM) framework. You'll also explore concurrency and synchronization/locking technologies, including mutexes, spinlocks, atomic/refcount operators, rw-spinlocks, per-CPU, and RCU.

By the end, you'll have a strong foundation for writing Linux kernel and kernel module code for real-world projects and products.

What you will learnConfigure and build the 6.1 LTS kernel from sourceWrite high-quality modular kernel code (LKM framework) for 6.x kernelsExplore modern Linux kernel architectureUnderstand and work with various dynamic kernel memory alloc/dealloc APIsDiscover key internals aspects regarding CPU scheduling within the kernel, including cgroups v2Gain a deeper understanding of kernel concurrency issuesLearn how to work with key kernel synchronization primitivesWho this book is forThis book is for beginner Linux programmers and developers looking to get started with the Linux kernel, providing a knowledge base to understand required kernel internal topics and overcome frequent and common development issues. A basic understanding of Linux CLI and C programming is assumed.

Table of ContentsLinux Kernel Programming – A Quick IntroductionBuilding the 6.x Linux Kernel from Source - Part 1Building the 6.x Linux Kernel from Source - Part 2Writing Your First Kernel Module - Part 1Writing Your First Kernel Module - Part 2Kernel Internals Essentials - Processes and ThreadsMemory Management Internals - EssentialsKernel Memory Allocation for Module Authors - Part 1Kernel Memory Allocation for Module Authors - Part 2The CPU Scheduler - Part 1The CPU Scheduler - Part 2Kernel Synchronization - Part 1Kernel Synchronization - Part 2

1540 pages, Kindle Edition

Published February 29, 2024

Loading...
Loading...

About the author

Kaiwan Billimoria

1 book1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (25%)
4 stars
2 (50%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
1 (25%)
No one has reviewed this book yet.