udev_monitor_new_from_netlink.xml revision 06255d6f76f3f630a9634d745a48910b1ea3e4d3
2N/A<?xml version='1.0'?> <!--*-nxml-*-->
2N/A<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2N/A "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
2N/A<!ENTITY % entities SYSTEM "custom-entities.ent" >
2N/A%entities;
2N/A]>
2N/A
2N/A<!--
2N/A This file is part of systemd.
2N/A
2N/A Copyright 2015 David Herrmann <dh.herrmann@gmail.com>
2N/A
2N/A systemd is free software; you can redistribute it and/or modify it
2N/A under the terms of the GNU Lesser General Public License as published by
2N/A the Free Software Foundation; either version 2.1 of the License, or
2N/A (at your option) any later version.
2N/A
2N/A systemd is distributed in the hope that it will be useful, but
2N/A WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2790N/A Lesser General Public License for more details.
2790N/A
5337N/A You should have received a copy of the GNU Lesser General Public License
2N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
2N/A-->
2N/A
2N/A<refentry id="udev_monitor_new_from_netlink"
2N/A xmlns:xi="http://www.w3.org/2001/XInclude">
2N/A
3817N/A <refentryinfo>
2N/A <title>udev_monitor_new_from_netlink</title>
2N/A <productname>systemd</productname>
2N/A
59N/A <authorgroup>
59N/A <author>
2N/A <contrib>Developer</contrib>
2N/A <firstname>David</firstname>
2N/A <surname>Herrmann</surname>
2N/A <email>dh.herrmann@gmail.com</email>
26N/A </author>
26N/A </authorgroup>
2N/A </refentryinfo>
26N/A
1470N/A <refmeta>
38N/A <refentrytitle>udev_monitor_new_from_netlink</refentrytitle>
1470N/A <manvolnum>3</manvolnum>
1470N/A </refmeta>
1470N/A
181N/A <refnamediv>
26N/A <refname>udev_monitor_new_from_netlink</refname>
4811N/A <refname>udev_monitor_ref</refname>
4811N/A <refname>udev_monitor_unref</refname>
4811N/A
3739N/A <refpurpose>Create, acquire and release a udev monitor object</refpurpose>
3739N/A </refnamediv>
3739N/A
3739N/A <refsynopsisdiv>
3739N/A <funcsynopsis>
3739N/A <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
3739N/A
3739N/A <funcprototype>
3817N/A <funcdef>struct udev_monitor *<function>udev_monitor_new_from_netlink</function></funcdef>
3817N/A <paramdef>struct udev *<parameter>udev</parameter></paramdef>
26N/A <paramdef>const char *<parameter>name</parameter></paramdef>
26N/A </funcprototype>
26N/A
26N/A <funcprototype>
26N/A <funcdef>struct udev_monitor *<function>udev_monitor_ref</function></funcdef>
26N/A <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
26N/A </funcprototype>
700N/A
700N/A <funcprototype>
26N/A <funcdef>struct udev_monitor *<function>udev_monitor_unref</function></funcdef>
26N/A <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
26N/A </funcprototype>
1498N/A
1498N/A </funcsynopsis>
26N/A </refsynopsisdiv>
1498N/A
151N/A <!--<refsect1>
206N/A <title>Description</title>
26N/A
26N/A <para>XXX: Add short description.</para>
26N/A </refsect1>-->
26N/A
26N/A <refsect1>
3998N/A <title>Return Value</title>
2818N/A
2830N/A <para>On success,
3127N/A <function>udev_monitor_new_from_netlink()</function> returns a
3998N/A pointer to the allocated udev monitor. On failure,
26N/A <constant>NULL</constant> is returned.
3294N/A <function>udev_monitor_ref()</function> returns the argument
26N/A that it was passed, unmodified.
2N/A <function>udev_monitor_unref()</function> always returns
4747N/A <constant>NULL</constant>.</para>
4437N/A </refsect1>
4437N/A
4488N/A <refsect1>
4488N/A <title>See Also</title>
4437N/A
4437N/A <para>
5425N/A <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>udev_monitor_filter_update</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>udev_monitor_receive_device</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
5425N/A <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
5425N/A </para>
5425N/A </refsect1>
5425N/A
5425N/A</refentry>
5425N/A