Blog

Introducing libgpiod

Wednesday, 15 Sep 2021  |  Nathan Drude

Variscite is introducing support for libgpiod, the new and recommended way for accessing GPIO from userspace. libgpiod was introduced in Linux 4.8 and provides both command line utilities and library bindings for C/C++ and Python. Variscite has added libgpiod support to all software releases starting from Yocto Dunfell, Boot2Qt Dunfell, and Debian Bullseye.

Previously, the recommended way of accessing GPIOs from Linux userspace was using the GPIO sysfs interface, which is limited and requires custom userspace libraries for higher level programming languages like C, C++, Python, etc.

Moving forward, the sysfs interface is being deprecated. For now, it will continue to be maintained, but no new features will be added. Please monitor the kernel documentation for the latest information.

Instead, it is now recommended to use libgpiod.
libgpiod has several significant improvements over the GPIO sysfs interface:

  • Userspace libraries for C/C++ and Python provide a standardized API
  • Each GPIO controller is registered as a character device in /dev so GPIO allocation is tied to the process that is using it
  • Multiple GPIO pins can be read at once
  • GPIO controllers and pins can be found by name
  • GPIO pin settings can be configured at runtime (pull-up, pull-down, etc.)
  • Interrupt driven event monitoring (rising, falling, etc.)
DART-MX8M-PLUS
DART-MX8M-PLUS System on Module

 

For more information about using libgpiod, check out the DART-MX8M-PLUS GPIO sample guide or visit the ‘how to’ section on the chosen SoM and Yocto release page within Variscite’s wiki website.

Latest Posts
Software releases
July software updates
Stay current with software updates – Keep your Variscite SoMs performing at their best with our latest software releases.
 
21.07.2026
Newsroom
VAR+NRG. Built for MedTech. Ready for Compliance
Getting a regulated medical product to market requires more than great hardware. Engineering teams must simultaneously manage embedded software, cybersecurity, QMS documentation, and validation – keeping all of it aligned around a single certified, long-term-reliable product. That is precisely the challenge a new Variscite and NRG partnership is designed to address.
Variscite, a leading System on Module manufacturer with proven expertise in medical applications, has joined forces with NRG, an engineering firm specializing in regulated medtech systems, to deliver an integrated hardware-software solution for companies building embedded medical products. The partnership gives development teams access to both a proven hardware platform and the software and engineering capabilities needed to support regulated development goals and product readiness.
22.07.2026
Blog
supply-chain-resilience-website-size.png
The global component crisis is forcing embedded teams to confront an uncomfortable reality: not all SoM vendors are equally equipped to weather it. In the latest episode of the Embedded Executive Podcast, Variscite CEO Ohad Yaniv joined Rich Nass of Embedded Computing Design to discuss what it takes to keep customer projects on schedule when supplies are under sustained pressure and why the answer starts with who controls your manufacturing. Unlike vendors who rely on subcontractors, Variscite designs and manufactures its entire System on Module portfolio in-house, with production fully certified to ISO 9001, 13485, and 27001 standards.
15.07.2026 Ohad Yaniv