1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>parport_set_timeout</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="parportdev.html" title="Chapter 3. Parallel Port Devices"><link rel="prev" href="API-parport-read.html" title="parport_read"><link rel="next" href="API-parport-register-driver.html" title="parport_register_driver"></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">parport_set_timeout</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-parport-read.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Parallel Port Devices</th><td width="20%" align="right"> <a accesskey="n" href="API-parport-register-driver.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-parport-set-timeout"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>parport_set_timeout — 2 set the inactivity timeout for a device 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">long <b class="fsfunc">parport_set_timeout </b>(</code></td><td>struct pardevice * <var class="pdparam">dev</var>, </td></tr><tr><td> </td><td>long <var class="pdparam">inactivity</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1110962676"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p> 4 device on a port 5 </p></dd><dt><span class="term"><em class="parameter"><code>inactivity</code></em></span></dt><dd><p> 6 inactivity timeout (in jiffies) 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1110965300"></a><h2>Description</h2><p> 8 This sets the inactivity timeout for a particular device on a 9 port. This affects functions like <code class="function">parport_wait_peripheral</code>. 10 The special value 0 means not to call <code class="function">schedule</code> while dealing 11 with this device. 12 </p><p> 13 14 The return value is the previous inactivity timeout. 15 </p><p> 16 17 Any callers of <code class="function">parport_wait_event</code> for this device are woken 18 up. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-parport-read.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="parportdev.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-parport-register-driver.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">parport_read</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">parport_register_driver</span></td></tr></table></div></body></html> 20