116 lines
3.1 KiB
HTML
116 lines
3.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of UDEV_MONITOR_RECEIVE_DEVICE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>UDEV_MONITOR_RECEIVE_DEVICE</H1>
|
|
Section: udev_monitor_receive_device (3)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
udev_monitor_receive_device, udev_monitor_enable_receiving, udev_monitor_set_receive_buffer_size, udev_monitor_get_fd, udev_monitor_get_udev - Query and modify device monitor
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<B>
|
|
</B><PRE>
|
|
#include <<A HREF="file:///usr/include/libudev.h">libudev.h</A>>
|
|
</PRE>
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>struct udev_device *udev_monitor_receive_device(struct udev_monitor *</B><I>udev_monitor</I><B>);</B>
|
|
|
|
<DT id="2">
|
|
<B>int udev_monitor_enable_receiving(struct udev_monitor *</B><I>udev_monitor</I><B>);</B>
|
|
|
|
<DT id="3">
|
|
<B>int udev_monitor_set_receive_buffer_size(struct udev_monitor *</B><I>udev_monitor</I><B>, int </B><I>size</I><B>);</B>
|
|
|
|
<DT id="4">
|
|
<B>int udev_monitor_get_fd(struct udev_monitor *</B><I>udev_monitor</I><B>);</B>
|
|
|
|
<DT id="5">
|
|
<B>struct udev *udev_monitor_get_udev(struct udev_monitor *</B><I>udev_monitor</I><B>);</B>
|
|
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
<P>
|
|
|
|
<DD>On success,
|
|
<B>udev_monitor_receive_device()</B>
|
|
returns a pointer to a newly referenced device that was received via the monitor. The caller is responsible to drop this reference when done. On failure,
|
|
<B>NULL</B>
|
|
is returned.
|
|
<P>
|
|
|
|
On success,
|
|
<B>udev_monitor_enable_receiving()</B>
|
|
and
|
|
<B>udev_monitor_set_receive_buffer_size()</B>
|
|
return an integer greater than, or equal to,
|
|
<B>0</B>. On failure, a negative error code is returned.
|
|
<P>
|
|
|
|
On success,
|
|
<B>udev_monitor_get_fd()</B>
|
|
returns the file descriptor used by this monitor. On failure, a negative error code is returned.
|
|
<P>
|
|
|
|
<B>udev_monitor_get_udev()</B>
|
|
always returns a pointer to the udev context that this monitor is associated with.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_new">udev_new</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_device_new_from_syspath">udev_device_new_from_syspath</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_enumerate_new">udev_enumerate_new</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_monitor_new_from_netlink">udev_monitor_new_from_netlink</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_monitor_filter_update">udev_monitor_filter_update</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+udev_list_entry">udev_list_entry</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">RETURN VALUE</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:59 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|