From fc6f59aedc456bd8f4cd6440079a337a481519f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 12 Apr 2022 11:28:17 +0200 Subject: [PATCH] man: add landing page for sd-device We got documentation for sd-device for the first time with b51f4eaf7b58f064092215cea9c6fc1c5af5646e, so let's celebrate by adding a landing page that also explains the relationship with libudev. --- man/rules/meson.build | 1 + man/sd-device.xml | 61 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 man/sd-device.xml diff --git a/man/rules/meson.build b/man/rules/meson.build index add28a724cb..180b0abaaa2 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -117,6 +117,7 @@ manpages = [ 'SD_NOTICE', 'SD_WARNING'], ''], + ['sd-device', '3', [], ''], ['sd-event', '3', [], ''], ['sd-hwdb', '3', [], ''], ['sd-id128', diff --git a/man/sd-device.xml b/man/sd-device.xml new file mode 100644 index 00000000000..3a86a28848b --- /dev/null +++ b/man/sd-device.xml @@ -0,0 +1,61 @@ + + + + + + + + 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 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 + systemd-udevd.service8. + This API is a replacement for + libudev3 and + libudev.h. + + See + sd_device_get_syspath3 + + for more information about the functions available. + + + + + + See Also + + systemd1, + sd-event3, + udevadm8 + + + + -- 2.47.3