# sysprog21/lkmpg

The Linux Kernel Module Programming Guide (updated for 5.0+ kernels)

Repository: https://github.com/sysprog21/lkmpg
Canonical: https://ross.abutalabs.com/products/lkmpg
Homepage: https://sysprog21.github.io/lkmpg/
Language: TeX
License: OSL-3.0
License Family: other
Topics: linux, linux-kernel, linux-kernel-module, linux-kernel-driver, kernel, lkm, device-driver, lkmpg, books, documentation, c
Last push: 2026-08-23T12:28:57+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 60, longevity 100
- inputs: {"age_days": 1869, "days_push": 10, "days_rel": 107, "gap_med": 0, "n_releases_24m": 4}
- flags: prerelease_only
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8572, forks 621 (observed 2026-08-28T04:10:23.597800+00:00)

## What it is
An actively maintained edition of The Linux Kernel Module Programming Guide, updated for 5.x and 6.x kernels with working example code. It is a free book (TeX source, PDF/HTML builds) covering kernel module development, character device drivers, synchronization, memory management, and DMA.

## Use cases
- learn how to write linux kernel modules
- tutorial for writing a linux device driver
- understand kernel synchronization like mutexes spinlocks and RCU
- examples of character device drivers for modern kernels
- learn procfs sysfs and debugfs kernel interfaces
- how to pass parameters to a kernel module
- learn DMA and memory-mapped I/O in the linux kernel

## When to choose
- you want up-to-date kernel module documentation for 5.x/6.x kernels with runnable examples
- you are learning Linux kernel or driver development from scratch
- you need a free, well-structured reference on kernel programming interfaces

## When to avoid
- you need documentation for kernels older than 5.x
- you want general Linux user-space programming rather than kernel-space development
- you need driver development for non-Linux operating systems

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: operating-systems, developer-tools, tutorials, documentation
- platform: cross-platform
- tags: linux-kernel, kernel-modules, device-drivers, book, c, kernel-programming, linux

## Member repositories
- sysprog21/lkmpg (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.597800+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:26:16.772031+00:00, confidence not recorded.
  - readme: https://github.com/sysprog21/lkmpg (fetched 2026-08-28T04:10:23.597800+00:00, sha e39e1ab9e9a5)
  - homepage: https://sysprog21.github.io/lkmpg/ (fetched 2026-08-29T08:26:31.874499+00:00, sha 37dea28395e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
