]>
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 | <!-- | |
572eb058 ZJS |
9 | SPDX-License-Identifier: LGPL-2.1+ |
10 | ||
06255d6f DH |
11 | This file is part of systemd. |
12 | ||
13 | Copyright 2015 David Herrmann <dh.herrmann@gmail.com> | |
06255d6f DH |
14 | --> |
15 | ||
16 | <refentry id="udev_monitor_new_from_netlink" | |
17 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
18 | ||
19 | <refentryinfo> | |
20 | <title>udev_monitor_new_from_netlink</title> | |
21 | <productname>systemd</productname> | |
22 | ||
23 | <authorgroup> | |
24 | <author> | |
25 | <contrib>Developer</contrib> | |
26 | <firstname>David</firstname> | |
27 | <surname>Herrmann</surname> | |
28 | <email>dh.herrmann@gmail.com</email> | |
29 | </author> | |
30 | </authorgroup> | |
31 | </refentryinfo> | |
32 | ||
33 | <refmeta> | |
34 | <refentrytitle>udev_monitor_new_from_netlink</refentrytitle> | |
35 | <manvolnum>3</manvolnum> | |
36 | </refmeta> | |
37 | ||
38 | <refnamediv> | |
39 | <refname>udev_monitor_new_from_netlink</refname> | |
40 | <refname>udev_monitor_ref</refname> | |
41 | <refname>udev_monitor_unref</refname> | |
42 | ||
43 | <refpurpose>Create, acquire and release a udev monitor object</refpurpose> | |
44 | </refnamediv> | |
45 | ||
46 | <refsynopsisdiv> | |
47 | <funcsynopsis> | |
48 | <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> | |
49 | ||
50 | <funcprototype> | |
51 | <funcdef>struct udev_monitor *<function>udev_monitor_new_from_netlink</function></funcdef> | |
52 | <paramdef>struct udev *<parameter>udev</parameter></paramdef> | |
53 | <paramdef>const char *<parameter>name</parameter></paramdef> | |
54 | </funcprototype> | |
55 | ||
56 | <funcprototype> | |
57 | <funcdef>struct udev_monitor *<function>udev_monitor_ref</function></funcdef> | |
58 | <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef> | |
59 | </funcprototype> | |
60 | ||
61 | <funcprototype> | |
62 | <funcdef>struct udev_monitor *<function>udev_monitor_unref</function></funcdef> | |
63 | <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef> | |
64 | </funcprototype> | |
65 | ||
66 | </funcsynopsis> | |
67 | </refsynopsisdiv> | |
68 | ||
69 | <!--<refsect1> | |
70 | <title>Description</title> | |
71 | ||
72 | <para>XXX: Add short description.</para> | |
73 | </refsect1>--> | |
74 | ||
75 | <refsect1> | |
76 | <title>Return Value</title> | |
77 | ||
78 | <para>On success, | |
79 | <function>udev_monitor_new_from_netlink()</function> returns a | |
80 | pointer to the allocated udev monitor. On failure, | |
81 | <constant>NULL</constant> is returned. | |
82 | <function>udev_monitor_ref()</function> returns the argument | |
83 | that it was passed, unmodified. | |
84 | <function>udev_monitor_unref()</function> always returns | |
85 | <constant>NULL</constant>.</para> | |
86 | </refsect1> | |
87 | ||
88 | <refsect1> | |
89 | <title>See Also</title> | |
90 | ||
91 | <para> | |
92 | <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
93 | <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
94 | <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
95 | <citerefentry><refentrytitle>udev_monitor_filter_update</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
96 | <citerefentry><refentrytitle>udev_monitor_receive_device</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
97 | <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
98 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
99 | </para> | |
100 | </refsect1> | |
101 | ||
102 | </refentry> |