1STRUCT INPUT_POLLED_(9)         Input Subsystem        STRUCT INPUT_POLLED_(9)
2
3
4

NAME

6       struct_input_polled_dev - simple polled input device
7

SYNOPSIS

9       struct input_polled_dev {
10         void * private;
11         void (* open) (struct input_polled_dev *dev);
12         void (* close) (struct input_polled_dev *dev);
13         void (* poll) (struct input_polled_dev *dev);
14         unsigned int poll_interval;
15         unsigned int poll_interval_max;
16         unsigned int poll_interval_min;
17         struct input_dev * input;
18       };
19

MEMBERS

21       private
22           private driver data.
23
24       open
25           driver-supplied method that prepares device for polling (enabled
26           the device and maybe flushes device state).
27
28       close
29           driver-supplied method that is called when device is no longer
30           being polled. Used to put device into low power mode.
31
32       poll
33           driver-supplied method that polls the device and posts input events
34           (mandatory).
35
36       poll_interval
37           specifies how often the poll method should be called. Defaults to
38           500 msec unless overridden when registering the device.
39
40       poll_interval_max
41           specifies upper bound for the poll interval. Defaults to the
42           initial value of poll_interval.
43
44       poll_interval_min
45           specifies lower bound for the poll interval. Defaults to 0.
46
47       input
48           input device structure associated with the polled device. Must be
49           properly initialized by the driver (id, name, phys, bits).
50

DESCRIPTION

52       Polled input device provides a skeleton for supporting simple input
53       devices that do not raise interrupts but have to be periodically
54       scanned or polled to detect changes in their state.
55
57Kernel Hackers Manual 3.10         June 2019           STRUCT INPUT_POLLED_(9)
Impressum