'\" t .\" Title: struct input_polled_dev .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "STRUCT INPUT_POLLED_" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Input Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_input_polled_dev \- simple polled input device .SH "SYNOPSIS" .sp .nf 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; }; .fi .SH "MEMBERS" .PP private .RS 4 private driver data\&. .RE .PP open .RS 4 driver\-supplied method that prepares device for polling (enabled the device and maybe flushes device state)\&. .RE .PP close .RS 4 driver\-supplied method that is called when device is no longer being polled\&. Used to put device into low power mode\&. .RE .PP poll .RS 4 driver\-supplied method that polls the device and posts input events (mandatory)\&. .RE .PP poll_interval .RS 4 specifies how often the \fBpoll\fR method should be called\&. Defaults to 500 msec unless overridden when registering the device\&. .RE .PP poll_interval_max .RS 4 specifies upper bound for the poll interval\&. Defaults to the initial value of \fIpoll_interval\fR\&. .RE .PP poll_interval_min .RS 4 specifies lower bound for the poll interval\&. Defaults to 0\&. .RE .PP input .RS 4 input device structure associated with the polled device\&. Must be properly initialized by the driver (id, name, phys, bits)\&. .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br