跳转到主要内容

sd-device

systemd

sd-device

3

sd-device

API for enumerating and introspecting local devices

#include <systemd/sd-device.h>

pkg-config --cflags --libs libsystemd

Description

sd-device.h is part of libsystemd(3) and 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 managed by systemd-udevd.service(8). This API is a replacement for libudev(3) and libudev.h.

See sd_device_get_syspath(3),, sd_device_ref(3) for more information about the functions available.

See Also

systemd(1), sd-event(3), udevadm(8)