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" > 5%entities; 6]> 7<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> 8 9<refentry id="udev_enumerate_new" 10 xmlns:xi="http://www.w3.org/2001/XInclude"> 11 12 <refentryinfo> 13 <title>udev_enumerate_new</title> 14 <productname>systemd</productname> 15 </refentryinfo> 16 17 <refmeta> 18 <refentrytitle>udev_enumerate_new</refentrytitle> 19 <manvolnum>3</manvolnum> 20 </refmeta> 21 22 <refnamediv> 23 <refname>udev_enumerate_new</refname> 24 <refname>udev_enumerate_ref</refname> 25 <refname>udev_enumerate_unref</refname> 26 27 <refpurpose>Create, acquire and release a udev enumerate object</refpurpose> 28 </refnamediv> 29 30 <refsynopsisdiv> 31 <funcsynopsis> 32 <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> 33 34 <funcprototype> 35 <funcdef>struct udev_enumerate *<function>udev_enumerate_new</function></funcdef> 36 <paramdef>struct udev *<parameter>udev</parameter></paramdef> 37 </funcprototype> 38 39 <funcprototype> 40 <funcdef>struct udev_enumerate *<function>udev_enumerate_ref</function></funcdef> 41 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> 42 </funcprototype> 43 44 <funcprototype> 45 <funcdef>struct udev_enumerate *<function>udev_enumerate_unref</function></funcdef> 46 <paramdef>struct udev_enumerate *<parameter>udev_enumerate</parameter></paramdef> 47 </funcprototype> 48 49 </funcsynopsis> 50 </refsynopsisdiv> 51 52 <!--<refsect1> 53 <title>Description</title> 54 55 <para>XXX: Add short description.</para> 56 </refsect1>--> 57 58 <refsect1> 59 <title>Return Value</title> 60 61 <para>On success, <function>udev_enumerate_new()</function> returns a 62 pointer to the allocated udev monitor. 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> 68 </refsect1> 69 70 <refsect1> 71 <title>See Also</title> 72 73 <para> 74 <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 75 <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 76 <citerefentry><refentrytitle>udev_enumerate_add_match_subsystem</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 77 <citerefentry><refentrytitle>udev_enumerate_scan_devices</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 78 <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 79 <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>, 80 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, 81 </para> 82 </refsect1> 83 84</refentry> 85