'\" t .\" Title: sata_scr_read .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "SATA_SCR_READ" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "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 \fIstruct ata_link * link\fR .RS 4 ATA link to read SCR for .RE .PP \fIint reg\fR .RS 4 SCR to read .RE .PP \fIu32 * val\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\&. .PP LOCKING: None if \fIlink\fR is ap\->link\&. Kernel thread context otherwise\&. .SH "RETURN" .PP 0 on success, negative errno on failure\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br