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

# subsys\_dev\_iter\_init(9)

initialize subsys device iterator

## NAME

subsys\_dev\_iter\_init - initialize subsys device iterator

## SYNOPSIS

**void subsys\_dev\_iter\_init(struct subsys\_dev\_iter \*** *iter***, struct bus\_type \*** *subsys***, struct device \*** *start***, const struct device\_type \*** *type***);**

## ARGUMENTS

*iter*

subsys iterator to initialize

*subsys*

the subsys we wanna iterate over

*start*

the device to start iterating from, if any

*type*

device\_type of the devices to iterate over, NULL for all

## DESCRIPTION

Initialize subsys iterator *iter* such that it iterates over devices of *subsys*. If *start* is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.

## COPYRIGHT
