'\" t .\" Title: sata_scr_read .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SATA_SCR_READ" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "libata Library" .\" ----------------------------------------------------------------- .\" * 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" sata_scr_read \- read SCR register of the specified port .SH "SYNOPSIS" .HP \w'int\ sata_scr_read('u .BI "int sata_scr_read(struct\ ata_link\ *\ " "link" ", int\ " "reg" ", u32\ *\ " "val" ");" .SH "ARGUMENTS" .PP \fIlink\fR .RS 4 ATA link to read SCR for .RE .PP \fIreg\fR .RS 4 SCR to read .RE .PP \fIval\fR .RS 4 Place to store read value .RE .SH "DESCRIPTION" .PP Read SCR register \fIreg\fR of \fIlink\fR into *\fIval\fR\&. This function is guaranteed to succeed if \fIlink\fR is ap\->link, the cable type of the port is SATA and the port implements \->scr_read\&. .SH "LOCKING" .PP None if \fIlink\fR is ap\->link\&. Kernel thread context otherwise\&. .SH "RETURNS" .PP 0 on success, negative errno on failure\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br