~/talk

Understanding the Structure of a Linux Kernel Device Driver

links:none on file
slides:none on file

Covers the kernel driver architecture by walking through five hands‑on iterations that build a working LED driver on a small network‑booted Linux board (Toradex demo): starts as a char device with direct MMIO access using ioremap and request_mem_region, adds user interface via the LED framework, replaces direct register writes with the gpiod API, and finally registers as a platform device using a device tree compatible string "labworks,rv-led". Shows MMIO vs port I/O, probe life cycle, device tree edits, and a size drop of 164→40→~30 lines.

AI-written summary · about

  1. 0:00Intro
  2. 1:03ABOUT THE TALK
  3. 2:17AGENDA
  4. 3:45WHAT ARE DEVICE DRIVERS?
  5. 5:52DEVICE DRIVER IS AN ABSTRACTION
  6. 6:12CHAR DRIVER: A SIMPLE ABSTRACTION
  7. 9:03CHAR DRIVER AS A FILE ABSTRACTION
  8. 10:00IMPLEMENTING A CHAR DRIVER
  9. 19:10TALKING TO THE HARDWARE
  10. 20:26MEMORY-MAPPED 1/0
  11. 21:17TALKING TO A MMIO DEVICE
  12. 26:31LED DRIVER
  13. 28:47THE DRIVER MODEL
  14. 30:17FRAMEWORKS
  15. 31:42USING THE LEDS FRAMEWORK
  16. 44:00ADVANTAGES
  17. 44:36BUSES AND POWER MANAGEMENT
  18. 45:33PLATFORM BUS
  19. 46:13REGISTERING A DEVICE
  20. 52:19A FLEXIBLE MODEL (cont.)
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.