| 1 |
.. |
| 2 |
SPDX-License-Identifier: CC-BY-SA-4.0 |
| 3 |
SPDX-FileCopyrightText: 2025 Bartosz Golaszewski <[email protected]> |
| 4 |
|
| 5 |
.. |
| 6 |
This file is part of libgpiod. |
| 7 |
|
| 8 |
GPIO D-Bus API, daemon and command-line client documentation |
| 9 |
|
| 10 |
D-Bus interface |
| 11 |
=============== |
| 12 |
|
| 13 |
A commonly requested feature for the GPIO character device was state persistence |
| 14 |
after releasing the lines (as a kernel feature) or providing a central authority |
| 15 |
(in user-space) that would be in charge of keeping the lines requested and in a |
| 16 |
certain state (similarily to how the sysfs ABI works). **GPIO D-Bus API** has |
| 17 |
been provided to address this requirement. We define an interface covering the |
| 18 |
majority of the GPIO chardev's functionality and implement it from both the |
| 19 |
server and client sides in the form of the **gpio-manager** daemon and the |
| 20 |
**gpiocli** command-line utility for talking to the manager. It enables |
| 21 |
relatively efficient, asynchronous control of GPIO lines, offering methods for |
| 22 |
configuring, monitoring, and manipulating GPIOs. |
| 23 |
|
| 24 |
.. note:: |
| 25 |
DBus support can be built by passing ``--enable-dbus`` to configure. The |
| 26 |
daemon is bundled with a systemd unit file and an example configuration file |
| 27 |
for the ``io.gpiod1`` interface that allows all users to access basic |
| 28 |
information about the GPIOs in the system but only root to request lines or |
| 29 |
change their values. |
| 30 |
|
| 31 |
.. toctree:: |
| 32 |
:maxdepth: 1 |
| 33 |
:caption: Contents |
| 34 |
|
| 35 |
dbus_api |
| 36 |
gpio-manager<gpio-manager> |
| 37 |
gpiocli_top |