man-pages/man3/udev_monitor_receive_device.3.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</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">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>
</B><PRE>
#include &lt;<A HREF="file:///usr/include/libudev.h">libudev.h</A>&gt;
</PRE>
<DL COMPACT>
<DT id="1">
<B>struct udev_device *udev_monitor_receive_device(struct&nbsp;udev_monitor&nbsp;*</B><I>udev_monitor</I><B>);</B>
<DT id="2">
<B>int udev_monitor_enable_receiving(struct&nbsp;udev_monitor&nbsp;*</B><I>udev_monitor</I><B>);</B>
<DT id="3">
<B>int udev_monitor_set_receive_buffer_size(struct&nbsp;udev_monitor&nbsp;*</B><I>udev_monitor</I><B>, int&nbsp;</B><I>size</I><B>);</B>
<DT id="4">
<B>int udev_monitor_get_fd(struct&nbsp;udev_monitor&nbsp;*</B><I>udev_monitor</I><B>);</B>
<DT id="5">
<B>struct udev *udev_monitor_get_udev(struct&nbsp;udev_monitor&nbsp;*</B><I>udev_monitor</I><B>);</B>
</DL>
<A NAME="lbAD">&nbsp;</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">&nbsp;</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">&nbsp;</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>