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_monitor_filter_update"
10  xmlns:xi="http://www.w3.org/2001/XInclude">
11
12  <refentryinfo>
13    <title>udev_monitor_filter_update</title>
14    <productname>systemd</productname>
15  </refentryinfo>
16
17  <refmeta>
18    <refentrytitle>udev_monitor_filter_update</refentrytitle>
19    <manvolnum>3</manvolnum>
20  </refmeta>
21
22  <refnamediv>
23    <refname>udev_monitor_filter_update</refname>
24    <refname>udev_monitor_filter_remove</refname>
25    <refname>udev_monitor_filter_add_match_subsystem_devtype</refname>
26    <refname>udev_monitor_filter_add_match_tag</refname>
27
28    <refpurpose>Modify filters</refpurpose>
29  </refnamediv>
30
31  <refsynopsisdiv>
32    <funcsynopsis>
33      <funcsynopsisinfo>#include &lt;libudev.h&gt;</funcsynopsisinfo>
34
35      <funcprototype>
36        <funcdef>int <function>udev_monitor_filter_update</function></funcdef>
37        <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
38      </funcprototype>
39
40      <funcprototype>
41        <funcdef>int <function>udev_monitor_filter_remove</function></funcdef>
42        <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
43      </funcprototype>
44
45      <funcprototype>
46        <funcdef>int <function>udev_monitor_filter_add_match_subsystem_devtype</function></funcdef>
47        <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
48        <paramdef>const char *<parameter>subsystem</parameter></paramdef>
49        <paramdef>const char *<parameter>devtype</parameter></paramdef>
50      </funcprototype>
51
52      <funcprototype>
53        <funcdef>int <function>udev_monitor_filter_add_match_tag</function></funcdef>
54        <paramdef>struct udev_monitor *<parameter>udev_monitor</parameter></paramdef>
55        <paramdef>const char *<parameter>tag</parameter></paramdef>
56      </funcprototype>
57
58    </funcsynopsis>
59  </refsynopsisdiv>
60
61  <!--<refsect1>
62    <title>Description</title>
63
64    <para>XXX: Add short description.</para>
65  </refsect1>-->
66
67  <refsect1>
68    <title>Return Value</title>
69
70    <para>On success,
71    <function>udev_monitor_filter_update()</function>,
72    <function>udev_monitor_filter_remove()</function>,
73    <function>udev_monitor_filter_add_match_subsystem_devtype()</function>
74    and
75    <function>udev_monitor_filter_add_match_tag()</function>
76    return an integer greater than, or equal to,
77    <constant>0</constant>. On failure, a negative error code is
78    returned.</para>
79  </refsect1>
80
81  <refsect1>
82    <title>See Also</title>
83
84    <para>
85      <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
86      <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
87      <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
88      <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
89      <citerefentry><refentrytitle>udev_monitor_receive_device</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
90      <citerefentry><refentrytitle>udev_list_entry</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
91      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
92    </para>
93  </refsect1>
94
95</refentry>
96