sd-device — API for enumerating and introspecting local devices
pkg-config --cflags --libs libsystemd
sd-device.h is part of
provides an API to introspect and enumerate devices on the local system. It provides a programmatic
interface to the database of devices and their properties mananaged by
This API is a replacement for
for more information about the functions available.
Functions described here are available as a shared
library, which can be compiled against and linked to with the
The code described here uses
which is declared to be not multi-thread-safe. This means that the code calling the functions described
here must not call
from a parallel thread. It is recommended to only do calls to
from an early phase of the program when no other threads have been started.