1SD-DEVICE(3) sd-device SD-DEVICE(3)
2
3
4
6 sd-device - API for enumerating and introspecting local devices
7
9 #include <systemd/sd-device.h>
10
11 pkg-config --cflags --libs libsystemd
12
14 sd-device.h is part of libsystemd(3) and provides an API to introspect
15 and enumerate devices on the local system. It provides a programmatic
16 interface to the database of devices and their properties mananaged by
17 systemd-udevd.service(8). This API is a replacement for libudev(3) and
18 libudev.h.
19
20 See
21
22 sd_device_get_syspath(3),
23 sd_device_ref(3)
24
25 for more information about the functions available.
26
28 Functions described here are available as a shared library, which can
29 be compiled against and linked to with the libsystemd pkg-config(1)
30 file.
31
32 The code described here uses getenv(3), which is declared to be not
33 multi-thread-safe. This means that the code calling the functions
34 described here must not call setenv(3) from a parallel thread. It is
35 recommended to only do calls to setenv() from an early phase of the
36 program when no other threads have been started.
37
39 systemd(1), sd-event(3), udevadm(8)
40
41
42
43systemd 254 SD-DEVICE(3)