---
name: "ata_port_offline"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_port_offline"
---

# ata\_port\_offline(9)

test whether the given port is offline

## NAME

ata\_port\_offline - test whether the given port is offline

## SYNOPSIS

**int ata\_port\_offline(struct ata\_port \*** *ap***);**

## ARGUMENTS

*ap*

ATA port to test

## DESCRIPTION

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

## LOCKING

None.

## RETURNS

1 if the port offline status is available and offline.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
