---
name: "ata_phys_link_offline"
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_phys_link_offline"
---

# ata\_phys\_link\_offline(9)

test whether the given link is offline

## NAME

ata\_phys\_link\_offline - test whether the given link is offline

## SYNOPSIS

**bool ata\_phys\_link\_offline(struct ata\_link \*** *link***);**

## ARGUMENTS

*link*

ATA link to test

## DESCRIPTION

Test whether *link* is offline. Note that this function returns 0 if offline status of *link* cannot be obtained, so ata\_link\_online(link) != !ata\_link\_offline(link).

LOCKING: None.

## RETURN

True if the port offline status is available and offline.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
