1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY % entities SYSTEM "custom-entities.ent" >
7 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
9 <refentry id="udev_enumerate_new"
10 xmlns:xi="http://www.w3.org/2001/XInclude">
13 <title>udev_enumerate_new</title>
14 <productname>systemd</productname>
18 <refentrytitle>udev_enumerate_new</refentrytitle>
19 <manvolnum>3</manvolnum>
23 <refname>udev_enumerate_new</refname>
24 <refname>udev_enumerate_ref</refname>
25 <refname>udev_enumerate_unref</refname>
27 <refpurpose>Create, acquire and release a udev enumerate object</refpurpose>
32 <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo>
35 <funcdef>struct udev_enumerate *<function>udev_enumerate_new</function></funcdef>
36 <paramdef>struct udev *<parameter>udev</parameter></paramdef>
40 <funcdef>struct udev_enumerate *<function>udev_enumerate_ref</function></funcdef>
41 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
45 <funcdef>struct udev_enumerate *<function>udev_enumerate_unref</function></funcdef>
46 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef>
53 <title>Description</title>
55 <para>XXX: Add short description.</para>
59 <title>Return Value</title>
61 <para>On success, <function>udev_enumerate_new()</function> returns a
62 pointer to the allocated enumeration object. On failure,
63 <constant>NULL</constant> is returned.
64 <function>udev_enumerate_ref()</function> returns the argument
65 that it was passed, unmodified.
66 <function>udev_enumerate_unref()</function> always returns
67 <constant>NULL</constant>.</para>
71 <title>History</title>
72 <para><function>udev_enumerate_new()</function>,
73 <function>udev_enumerate_ref()</function>, and
74 <function>udev_enumerate_unref()</function> were added in version 221.</para>
78 <title>See Also</title>
81 <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
82 <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
83 <citerefentry><refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
84 <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
85 <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
86 <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
87 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,