1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>usb_wait_anchor_empty_timeout</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux-USB Host Side API"><link rel="up" href="usbcore.html" title="Chapter&#160;5.&#160;USB Core APIs"><link rel="prev" href="API-usb-anchor-resume-wakeups.html" title="usb_anchor_resume_wakeups"><link rel="next" href="API-usb-get-from-anchor.html" title="usb_get_from_anchor"></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">usb_wait_anchor_empty_timeout</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-usb-anchor-resume-wakeups.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;5.&#160;USB Core APIs</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-usb-get-from-anchor.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-usb-wait-anchor-empty-timeout"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>usb_wait_anchor_empty_timeout &#8212; 
2     wait for an anchor to be unused
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">int <b class="fsfunc">usb_wait_anchor_empty_timeout </b>(</code></td><td>struct usb_anchor * <var class="pdparam">anchor</var>, </td></tr><tr><td>&#160;</td><td>unsigned int <var class="pdparam">timeout</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1116082572"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>anchor</code></em></span></dt><dd><p>
4     the anchor you want to become unused
5    </p></dd><dt><span class="term"><em class="parameter"><code>timeout</code></em></span></dt><dd><p>
6     how long you are willing to wait in milliseconds
7    </p></dd></dl></div></div><div class="refsect1"><a name="idp1116085172"></a><h2>Description</h2><p>
8   Call this is you want to be sure all an anchor's
9   URBs have finished
10</p></div><div class="refsect1"><a name="idp1116085828"></a><h2>Return</h2><p>
11   Non-zero if the anchor became unused. Zero on timeout.
12</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-usb-anchor-resume-wakeups.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="usbcore.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-usb-get-from-anchor.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">usb_anchor_resume_wakeups</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">usb_get_from_anchor</span></td></tr></table></div></body></html>
13