---
name: "driver_for_each_device"
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/driver_for_each_device"
---

# driver\_for\_each\_device(9)

Iterator for devices bound to a driver.

## NAME

driver\_for\_each\_device - Iterator for devices bound to a driver.

## SYNOPSIS

**int driver\_for\_each\_device(struct device\_driver \*** *drv***, struct device \*** *start***, void \*** *data***, int (\****fn***) (struct device \*, void \*));**

## ARGUMENTS

*drv*

Driver we're iterating.

*start*

Device to begin with

*data*

Data to pass to the callback.

*fn*

Function to call for each device.

## DESCRIPTION

Iterate over the *drv*'s list of devices calling *fn* for each one.

## COPYRIGHT
