---
name: "ata_link_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_link_next"
---

# ata\_link\_next(9)

link iteration helper

## NAME

ata\_link\_next - link iteration helper

## SYNOPSIS

**struct ata\_link \* ata\_link\_next(struct ata\_link \*** *link***, struct ata\_port \*** *ap***, enum ata\_link\_iter\_mode** *mode***);**

## ARGUMENTS

*link*

the previous link, NULL to start

*ap*

ATA port containing links to iterate

*mode*

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

## DESCRIPTION

LOCKING: Host lock or EH context.

## RETURN

Pointer to the next link.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
