---
name: "ata_dev_next"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_dev_next"
---

# ata\_dev\_next(9)

device iteration helper

## NAME

ata\_dev\_next - device iteration helper

## SYNOPSIS

**struct ata\_device \* ata\_dev\_next(struct ata\_device \*** *dev***, struct ata\_link \*** *link***, enum ata\_dev\_iter\_mode** *mode***);**

## ARGUMENTS

*dev*

the previous device, NULL to start

*link*

ATA link containing devices to iterate

*mode*

iteration mode, one of ATA\_DITER\_\*

## DESCRIPTION

LOCKING: Host lock or EH context.

## RETURN

Pointer to the next device.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
