1INPUT_HANDLER_FOR_EA(9) Input Subsystem INPUT_HANDLER_FOR_EA(9)
2
3
4
6 input_handler_for_each_handle - handle iterator
7
9 int input_handler_for_each_handle(struct input_handler * handler,
10 void * data,
11 int (*fn) (struct input_handle *, void *));
12
14 handler
15 input handler to iterate
16
17 data
18 data for the callback
19
20 fn
21 function to be called for each handle
22
24 Iterate over bus's list of devices, and call fn for each, passing it
25 data and stop when fn returns a non-zero value. The function is using
26 RCU to traverse the list and therefore may be usind in atonic contexts.
27 The fn callback is invoked from RCU critical section and thus must not
28 sleep.
29
31Kernel Hackers Manual 3.10 June 2019 INPUT_HANDLER_FOR_EA(9)