]>
Commit | Line | Data |
---|---|---|
06255d6f DH |
1 | <?xml version='1.0'?> <!--*-nxml-*--> |
2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ | |
4 | <!ENTITY % entities SYSTEM "custom-entities.ent" > | |
5 | %entities; | |
6 | ]> | |
7 | ||
8 | <!-- | |
9 | This file is part of systemd. | |
10 | ||
11 | Copyright 2015 David Herrmann <dh.herrmann@gmail.com> | |
12 | ||
13 | systemd is free software; you can redistribute it and/or modify it | |
14 | under the terms of the GNU Lesser General Public License as published by | |
15 | the Free Software Foundation; either version 2.1 of the License, or | |
16 | (at your option) any later version. | |
17 | ||
18 | systemd is distributed in the hope that it will be useful, but | |
19 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
21 | Lesser General Public License for more details. | |
22 | ||
23 | You should have received a copy of the GNU Lesser General Public License | |
24 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
25 | --> | |
26 | ||
27 | <refentry id="udev_monitor_new_from_netlink" | |
28 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
29 | ||
30 | <refentryinfo> | |
31 | <title>udev_monitor_new_from_netlink</title> | |
32 | <productname>systemd</productname> | |
33 | ||
34 | <authorgroup> | |
35 | <author> | |
36 | <contrib>Developer</contrib> | |
37 | <firstname>David</firstname> | |
38 | <surname>Herrmann</surname> | |
39 | <email>dh.herrmann@gmail.com</email> | |
40 | </author> | |
41 | </authorgroup> | |
42 | </refentryinfo> | |
43 | ||
44 | <refmeta> | |
45 | <refentrytitle>udev_monitor_new_from_netlink</refentrytitle> | |
46 | <manvolnum>3</manvolnum> | |
47 | </refmeta> | |
48 | ||
49 | <refnamediv> | |
50 | <refname>udev_monitor_new_from_netlink</refname> | |
51 | <refname>udev_monitor_ref</refname> | |
52 | <refname>udev_monitor_unref</refname> | |
53 | ||
54 | <refpurpose>Create, acquire and release a udev monitor object</refpurpose> | |
55 | </refnamediv> | |
56 | ||
57 | <refsynopsisdiv> | |
58 | <funcsynopsis> | |
59 | <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> | |
60 | ||
61 | <funcprototype> | |
62 | <funcdef>struct udev_monitor *<function>udev_monitor_new_from_netlink</function></funcdef> | |
63 | <paramdef>struct udev *<parameter>udev</parameter></paramdef> | |
64 | <paramdef>const char *<parameter>name</parameter></paramdef> | |
65 | </funcprototype> | |
66 | ||
67 | <funcprototype> | |
68 | <funcdef>struct udev_monitor *<function>udev_monitor_ref</function></funcdef> | |
69 | <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef> | |
70 | </funcprototype> | |
71 | ||
72 | <funcprototype> | |
73 | <funcdef>struct udev_monitor *<function>udev_monitor_unref</function></funcdef> | |
74 | <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef> | |
75 | </funcprototype> | |
76 | ||
77 | </funcsynopsis> | |
78 | </refsynopsisdiv> | |
79 | ||
80 | <!--<refsect1> | |
81 | <title>Description</title> | |
82 | ||
83 | <para>XXX: Add short description.</para> | |
84 | </refsect1>--> | |
85 | ||
86 | <refsect1> | |
87 | <title>Return Value</title> | |
88 | ||
89 | <para>On success, | |
90 | <function>udev_monitor_new_from_netlink()</function> returns a | |
91 | pointer to the allocated udev monitor. On failure, | |
92 | <constant>NULL</constant> is returned. | |
93 | <function>udev_monitor_ref()</function> returns the argument | |
94 | that it was passed, unmodified. | |
95 | <function>udev_monitor_unref()</function> always returns | |
96 | <constant>NULL</constant>.</para> | |
97 | </refsect1> | |
98 | ||
99 | <refsect1> | |
100 | <title>See Also</title> | |
101 | ||
102 | <para> | |
103 | <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
104 | <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
105 | <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
106 | <citerefentry><refentrytitle>udev_monitor_filter_update</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
107 | <citerefentry><refentrytitle>udev_monitor_receive_device</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
108 | <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
109 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
110 | </para> | |
111 | </refsect1> | |
112 | ||
113 | </refentry> |