Description
This repository keeps The Linux Kernel Module Programming Guide up to date, with working examples for recent 5.x and 6.x kernels. The guide has been around since 2001, and the project says most copies found on the web only describe older 2.6.x kernels. The book is free to read online or as a PDF, and it was based on the original guide published by the Linux Documentation Project. You build the documents from source with TeX Live, or with a Docker image that matches the project's GitHub Actions workflow, which the README recommends for consistent dependencies. The steps are to get the latest source code, install the prerequisites, and generate the PDF and HTML documents with the provided commands. The README says latexmk is needed to build the PDF, and that Pygments may need to be installed on macOS. The book itself is covered by the Open Software License and is described as a copyleft license, while the sample code is licensed under GNU GPL version 2, the same license as the Linux kernel. The README also points to other free programming books from the Free Ebook Foundation and the Online Books Page.…
Highlights
- Examples for Linux 5.x and 6.x kernels
- Free online and PDF versions
- Build PDF and HTML from source
- Docker image for the build
- Sample code under GPL v2
Ratings & Reviews
No ratings yet
Be the first to rate Lkmpg.
People also visit
Lkmpg FAQ
What is the Linux Kernel Module Programming Guide?
A free guide to writing Linux kernel modules, updated here with examples for 5.x and 6.x kernels.
Can I read it for free?
Yes. The README says it can be freely accessed online or as the latest PDF.
How do I build it?
Get the source, install the prerequisites such as TeX Live, and generate the PDF or HTML with the commands in the README. A Docker image is also provided.
What license applies?
The book is under the Open Software License, and the sample code is under GNU GPL version 2.
Which kernels does it cover?
The project keeps the examples working for recent 5.x and 6.x kernels, while many older copies cover 2.6.x.
Does it need Docker?
No. Docker is recommended for consistent dependencies, but you can install TeX Live and build the documents directly.
What are the best Lkmpg alternatives?
Popular alternatives to Lkmpg include Book, Netkiller.github.io and MdBook. See all Lkmpg alternatives


