2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="sd-device" xmlns:xi="http://www.w3.org/2001/XInclude">
9 <title>sd-device</title>
10 <productname>systemd</productname>
14 <refentrytitle>sd-device</refentrytitle>
15 <manvolnum>3</manvolnum>
19 <refname>sd-device</refname>
20 <refpurpose>API for enumerating and introspecting local devices</refpurpose>
25 <funcsynopsisinfo>#include <systemd/sd-device.h></funcsynopsisinfo>
29 <command>pkg-config --cflags --libs libsystemd</command>
35 <title>Description</title>
37 <para><filename>sd-device.h</filename> is part of
38 <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
39 provides an API to introspect and enumerate devices on the local system. It provides a programmatic
40 interface to the database of devices and their properties mananaged by
41 <citerefentry><refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
42 This API is a replacement for
43 <citerefentry><refentrytitle>libudev</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
44 <filename>libudev.h</filename>.</para>
48 <member><citerefentry><refentrytitle>sd_device_get_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,</member>
49 <member><citerefentry><refentrytitle>sd_device_ref</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>
51 for more information about the functions available.</para>
54 <xi:include href="libsystemd-pkgconfig.xml" />
57 <title>See Also</title>
58 <para><simplelist type="inline">
59 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
60 <member><citerefentry><refentrytitle>sd-event</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>
61 <member><citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>