input_handler_for_each_handle
Prev | Input core | Next

## Name

input_handler_for_each_handle — handle iterator

## Synopsis

`int input_handler_for_each_handle (` | struct input_handler * handler,
| void * data,
| int (*fn) `(`struct input_handle *, void *`)``)`;

## Arguments

`handler`

  input handler to iterate

`data`

  data for the callback

`fn`

  function to be called for each handle

## Description

Iterate over `bus`'s list of devices, and call `fn` for each, passing it `data` and stop when `fn` returns a non-zero value. The function is using RCU to traverse the list and therefore may be using in atomic contexts. The `fn` callback is invoked from RCU critical section and thus must not sleep.

Prev | Up | Next
input_unregister_handler | Home | input_register_handle