'\" t .\" Title: ata_phys_link_online .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ATA_PHYS_LINK_ONLINE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "libata Core Internals" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ata_phys_link_online \- test whether the given link is online .SH "SYNOPSIS" .HP \w'bool\ ata_phys_link_online('u .BI "bool ata_phys_link_online(struct\ ata_link\ *\ " "link" ");" .SH "ARGUMENTS" .PP \fIlink\fR .RS 4 ATA link to test .RE .SH "DESCRIPTION" .PP Test whether \fIlink\fR is online\&. Note that this function returns 0 if online status of \fIlink\fR cannot be obtained, so ata_link_online(link) != !ata_link_offline(link)\&. .PP LOCKING: None\&. .SH "RETURN" .PP True if the port online status is available and online\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br