Skip to Content
Linux Device Drivers Development
book

Linux Device Drivers Development

by John Madieu
October 2017
Intermediate to advanced
586 pages
14h 8m
English
Packt Publishing
Content preview from Linux Device Drivers Development

The new gpiolib irqchip API

Almost every GPIO controller driver was using an IRQ domain for the same purpose. Instead of each of them rolling their own irqdomain handling, and so on, kernel developers decided to move that code to the gpiolib framework, by means of the GPIOLIB_IRQCHIP Kconfig symbol, in order to harmonize the development and avoid redundant code.

That portion of code helps with handling the management of GPIO irqchips and the associated irq_domain and resource allocation callbacks, as well as their setup, using the reduced set of helper functions. These are gpiochip_irqchip_add() and gpiochip_set_chained_irqchip().

gpiochip_irqchip_add(): This adds an irqchip to a gpiochip. A summary of this function's actions is as follows: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Device Drivers, Second Edition

Linux Device Drivers, Second Edition

Jonathan Corbet, Alessandro Rubini
Linux Device Drivers, 3rd Edition

Linux Device Drivers, 3rd Edition

Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman

Publisher Resources

ISBN: 9781785280009Supplemental Content