ata_port_online(9)

ata_port_online9

Test whether the given port is online

Usage

int ata_port_online(struct ata_port * ap);

Arguments

ap

ATA port to test

Overview

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.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.