1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>datagram_poll</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s02.html" title="Socket Buffer Functions"><link rel="prev" href="API-skb-copy-and-csum-datagram-msg.html" title="skb_copy_and_csum_datagram_msg"><link rel="next" href="API-sk-stream-write-space.html" title="sk_stream_write_space"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">datagram_poll</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-skb-copy-and-csum-datagram-msg.html">Prev</a> </td><th width="60%" align="center">Socket Buffer Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-sk-stream-write-space.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-datagram-poll"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>datagram_poll — 2 generic datagram poll 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">unsigned int <b class="fsfunc">datagram_poll </b>(</code></td><td>struct file * <var class="pdparam">file</var>, </td></tr><tr><td> </td><td>struct socket * <var class="pdparam">sock</var>, </td></tr><tr><td> </td><td>poll_table * <var class="pdparam">wait</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1096633348"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>file</code></em></span></dt><dd><p> 4 file struct 5 </p></dd><dt><span class="term"><em class="parameter"><code>sock</code></em></span></dt><dd><p> 6 socket 7 </p></dd><dt><span class="term"><em class="parameter"><code>wait</code></em></span></dt><dd><p> 8 poll table 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1096636980"></a><h2>Datagram poll</h2><p> 10 Again totally generic. This also handles 11 sequenced packet sockets providing the socket receive queue 12 is only ever holding data ready to receive. 13</p></div><div class="refsect1"><a name="idp1096637740"></a><h2>Note</h2><p> 14 when you _don't_ use this routine for this protocol, 15 and you use a different write policy from <code class="function">sock_writeable</code> 16 then please supply your own write_space callback. 17</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-skb-copy-and-csum-datagram-msg.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-sk-stream-write-space.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">skb_copy_and_csum_datagram_msg</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">sk_stream_write_space</span></td></tr></table></div></body></html> 18