Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 1a595394b241504ff370a8d12ebfcea7 > files > 1531

kernel-doc-3.11.10-100.fc18.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>struct input_polled_dev</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="ch08s03.html" title="Polled input devices" /><link rel="prev" href="ch08s03.html" title="Polled input devices" /><link rel="next" href="API-input-allocate-polled-device.html" title="input_allocate_polled_device" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct input_polled_dev</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s03.html">Prev</a>&#160;</td><th width="60%" align="center">Polled input devices</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-input-allocate-polled-device.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-struct-input-polled-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct input_polled_dev &#8212; 
  simple polled input device
 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
struct input_polled_dev {
  void * private;
  void (* open) (struct input_polled_dev *dev);
  void (* close) (struct input_polled_dev *dev);
  void (* poll) (struct input_polled_dev *dev);
  unsigned int poll_interval;
  unsigned int poll_interval_max;
  unsigned int poll_interval_min;
  struct input_dev * input;
};  </pre></div><div class="refsect1"><a id="idm140404953874080"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">private</span></dt><dd><p>
private driver data.
      </p></dd><dt><span class="term">open</span></dt><dd><p>
driver-supplied method that prepares device for polling
(enabled the device and maybe flushes device state).
      </p></dd><dt><span class="term">close</span></dt><dd><p>
driver-supplied method that is called when device is no
longer being polled. Used to put device into low power mode.
      </p></dd><dt><span class="term">poll</span></dt><dd><p>
driver-supplied method that polls the device and posts
input events (mandatory).
      </p></dd><dt><span class="term">poll_interval</span></dt><dd><p>
specifies how often the <code class="function">poll</code> method should be called.
Defaults to 500 msec unless overridden when registering the device.
      </p></dd><dt><span class="term">poll_interval_max</span></dt><dd><p>
specifies upper bound for the poll interval.
Defaults to the initial value of <em class="parameter"><code>poll_interval</code></em>.
      </p></dd><dt><span class="term">poll_interval_min</span></dt><dd><p>
specifies lower bound for the poll interval.
Defaults to 0.
      </p></dd><dt><span class="term">input</span></dt><dd><p>
input device structure associated with the polled device.
Must be properly initialized by the driver (id, name, phys, bits).
      </p></dd></dl></div></div><div class="refsect1"><a id="idm140404953860080"></a><h2>Description</h2><p>
   Polled input device provides a skeleton for supporting simple input
   devices that do not raise interrupts but have to be periodically
   scanned or polled to detect changes in their state.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s03.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch08s03.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-input-allocate-polled-device.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Polled input devices&#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">input_allocate_polled_device</span></td></tr></table></div></body></html>