'\" t .\" Title: ata_tf_read_block .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "ATA_TF_READ_BLOCK" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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_tf_read_block \- Read block address from ATA taskfile .SH "SYNOPSIS" .HP \w'u64\ ata_tf_read_block('u .BI "u64 ata_tf_read_block(const\ struct\ ata_taskfile\ *\ " "tf" ", struct\ ata_device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fItf\fR .RS 4 ATA taskfile of interest .RE .PP \fIdev\fR .RS 4 ATA device \fItf\fR belongs to .RE .SH "DESCRIPTION" .PP LOCKING: None\&. .PP Read block address from \fItf\fR\&. This function can handle all three address formats \- LBA, LBA48 and CHS\&. tf\->protocol and flags select the address format to use\&. .SH "RETURN" .PP Block address read from \fItf\fR\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br