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

# ata\_port\_online(9)

test whether the given port is online

## NAME

ata\_port\_online - test whether the given port is online

## SYNOPSIS

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

## ARGUMENTS

*ap*

ATA port to test

## DESCRIPTION

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

## LOCKING

None.

## RETURNS

1 if the port online status is available and online.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
