Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Linux Foundation

New GPIO Interface for User Space

Linux Foundation via YouTube

Overview

Explore the new GPIO interface for user space in Linux with this informative conference talk. Delve into the features of the GPIO character device, introduced in Linux 4.8 as a replacement for the deprecated GPIO sysfs interface. Learn about polling for line events, finding GPIO chips and lines by name, and changing multiple line values with a single ioctl. Discover the benefits of switching to this new interface and gain insights into libgpiod, the user space tools for utilizing the character device. Understand the evolution of GPIO interfaces, from legacy to modern implementations, and explore the C API, including simple and low-level options. Get acquainted with GPIO tools like GPIO Find and GPIO daemon, and learn where to access these resources. Presented by Bartosz Golaszewski, an experienced embedded systems engineer and maintainer of libgpiod, this talk provides a comprehensive overview of the new GPIO UAPI and its practical applications in Linux-based systems.

Syllabus

Introduction
What is a GPIO
Provider and Consumer
Legacy User Space
New User Space Interface
Line
Direct
Flex
Request
Set
Events
Pulling Events
Project History
C API
Simple API
Lowlevel API
GPIO Tools
GPIO Find
GPIO daemon
Where to get
Questions

Taught by

Linux Foundation

Reviews

Start your review of New GPIO Interface for User Space

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.