# Johannes4Linux/Linux_Driver_Tutorial_legacy

A Tutorial how to get started with Linux Kernel Modules and Linux Drivers.

Repository: https://github.com/Johannes4Linux/Linux_Driver_Tutorial_legacy
Canonical: https://ross.abutalabs.com/products/linux_driver_tutorial_legacy
Language: C
License: Unlicense
License Family: permissive
Last push: 2024-07-15T15:36:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2080, "days_push": 779, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1110, forks 296 (observed 2026-08-28T04:03:37.589310+00:00)

## What it is
A collection of example C source code teaching Linux kernel module and device driver development, tested on a Raspberry Pi 3. It covers dozens of topics from simple hello-world modules to GPIO, I2C/SPI drivers, device tree bindings, DMA, and synchronization primitives.

## Use cases
- learn how to write a linux kernel module
- get started with linux device drivers
- example code for a gpio character device driver
- how to write an i2c or spi driver with device tree
- understand ioctl, poll, and waitqueues in kernel modules
- learn kernel memory management, mutexes, and completions
- write a procfs or sysfs entry from a kernel module

## When to choose
- you are learning Linux kernel module or driver development from scratch
- you want small, self-contained C examples to compile and run on a Raspberry Pi
- you need reference snippets for device tree, IIO, DMA, or mmap in drivers

## When to avoid
- you need a production-ready driver for specific hardware
- you want a modern kernel API tutorial (this is the legacy version)
- you develop drivers for platforms other than Linux

## Facets
- artifact type: learning-resource
- maturity: stable
- function: embedded, developer-tools, documentation
- domain: embedded-systems, operating-systems, tutorials, hardware
- platform: embedded, c
- tags: linux-kernel-modules, device-drivers, raspberry-pi, gpio, device-tree, i2c, spi, tutorial-examples, linux

## Member repositories
- Johannes4Linux/Linux_Driver_Tutorial_legacy (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:37.589310+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-30T06:43:25.471690+00:00, confidence not recorded.
  - readme: https://github.com/Johannes4Linux/Linux_Driver_Tutorial_legacy (fetched 2026-08-28T04:03:37.589310+00:00, sha 84a39bbf03c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
