1<?xml version='1.0'?> 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> 4<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> 5 6<refentry id="sd-device" xmlns:xi="http://www.w3.org/2001/XInclude"> 7 8 <refentryinfo> 9 <title>sd-device</title> 10 <productname>systemd</productname> 11 </refentryinfo> 12 13 <refmeta> 14 <refentrytitle>sd-device</refentrytitle> 15 <manvolnum>3</manvolnum> 16 </refmeta> 17 18 <refnamediv> 19 <refname>sd-device</refname> 20 <refpurpose>API for enumerating and introspecting local devices</refpurpose> 21 </refnamediv> 22 23 <refsynopsisdiv> 24 <funcsynopsis> 25 <funcsynopsisinfo>#include <systemd/sd-device.h></funcsynopsisinfo> 26 </funcsynopsis> 27 28 <cmdsynopsis> 29 <command>pkg-config --cflags --libs libsystemd</command> 30 </cmdsynopsis> 31 32 </refsynopsisdiv> 33 34 <refsect1> 35 <title>Description</title> 36 37 <para><filename>sd-device.h</filename> provides an API to introspect and enumerate devices on the local 38 system. It provides a programmatic interface to the database of devices and their properties mananaged by 39 <citerefentry><refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. 40 This API is a replacement for 41 <citerefentry><refentrytitle>libudev</refentrytitle><manvolnum>3</manvolnum></citerefentry> and 42 <filename>libudev.h</filename>.</para> 43 44 <para>See 45 <literallayout><citerefentry><refentrytitle>sd_device_get_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 46<citerefentry><refentrytitle>sd_device_ref</refentrytitle><manvolnum>3</manvolnum></citerefentry> 47</literallayout> 48 for more information about the functions available.</para> 49 </refsect1> 50 51 <xi:include href="libsystemd-pkgconfig.xml" /> 52 53 <refsect1> 54 <title>See Also</title> 55 <para> 56 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 57 <citerefentry><refentrytitle>sd-event</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 58 <citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry> 59 </para> 60 </refsect1> 61 62</refentry> 63