---
name: "ata_link_online"
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_online"
---

# ata\_link\_online(9)

test whether the given link is online

## NAME

ata\_link\_online - test whether the given link is online

## SYNOPSIS

**bool ata\_link\_online(struct ata\_link \*** *link***);**

## ARGUMENTS

*link*

ATA link to test

## DESCRIPTION

Test whether *link* is online. This is identical to **ata\_phys\_link\_online** when there's no slave link. When there's a slave link, this function should only be called on the master link and will return true if any of M/S links is online.

LOCKING: None.

## RETURN

True if the port online status is available and online.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
