---
name: "input_handler_for_each_handle"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_handler_for_each_handle"
---

# input\_handler\_for\_each\_handle(9)

handle iterator

## 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 usind in atonic contexts. The *fn* callback is invoked from RCU critical section and thus must not sleep.

## COPYRIGHT
