Update – New GPIO interface for linux user space (GPIO character device API and libgpiod) @LinuxPiter

Content Speakers Banner-1
Linux Piter #4 was November 2nd to 3rd of 2018, Bartosz Golaszewski presented on the New GPIO interface for linux user space, libgpiod - PDF. The most recent presentation has more updates from our previous coverage.

Adafruit 2018 1033

New GPIO interface for linux user space (GPIO character device API and libgpiod)

Since linux 4.8 the GPIO sysfs interface is deprecated. Due to its many drawbacks and bad design decisions a new user space interface has been implemented in the form of the GPIO character device which is now the preferred method of interaction with GPIOs which can’t otherwise be serviced by a kernel driver. The character device brings in many new interesting features such as: polling for line events, finding GPIO chips and lines by name, changing & reading the values of multiple lines with a single ioctl (one context switch) and many more.

In this presentation Bartosz will showcase the new features of the GPIO UAPI, discuss the current state of libgpiod (user space tools for using the character device providing a C library, set of user space tools and C++ & Python bindings) and tell you why it’s beneficial to switch to the new interface.


Related