Publications

LABCSMART is a French company of embedded Linux and Linux kernel engineers. Our experience with device drivers is summarized in two books on driver development for Linux and embedded Linux systems:

Cover of Linux Device Driver Development, Second Edition, by John Madieu

Linux Device Driver Development, Second Edition: Everything you need to start with device driver development for Linux kernel and embedded Linux

Published in April 2022, this 706-page book in 17 chapters introduces the development of Linux device drivers.

Table of contents

  • Introduction to Kernel Development
  • Understanding Linux Kernel Module Basic Concepts
  • Dealing with Kernel Core Helpers
  • Writing Character Device Drivers
  • Understanding and Leveraging the Device Tree
  • Introduction to Devices, Drivers, and Platform Abstraction
  • Understanding the Concept of Platform Devices and Drivers
  • Writing I2C and SPI Device Drivers
  • Understanding the Linux Kernel Memory Allocation
  • Implementing Direct Memory Access (DMA) Support
  • Abstracting Memory Access – Introduction to the Regmap API: a Register Map Abstraction
  • Demystifying the Kernel IRQ Framework
  • Digging into the IIO Framework
  • Getting the Most Out of the Pin Controller and GPIO Subsystems
  • Leveraging the Linux Kernel Input Subsystem
Cover of Mastering Linux Device Driver Development, by John Madieu

Mastering Linux Device Driver Development: Write custom device drivers to support computer peripherals in Linux operating systems

Published in January 2021, this 646-page book in 14 chapters demystifies complex kernel subsystems such as ALSA for SoC and V4L2, and covers power management in device drivers.

What you will learn

  • Explore and adopt Linux kernel helpers for locking, work deferral, and interrupt management
  • Understand the Regmap subsystem to manage memory accesses and work with the IRQ subsystem
  • Get to grips with the PCI subsystem and write reliable drivers for PCI devices
  • Write full multimedia device drivers using ALSA SoC and the V4L2 frameworks
  • Build power-aware device drivers using the kernel power management framework
  • Find out how to get the most out of miscellaneous kernel subsystems such as NVMEM and Watchdog
  • Analyse OOPs and use ftrace and objdump to debug the Linux kernel