'\" t .\" Title: ata_id_string .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "ATA_ID_STRING" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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" ata_id_string \- Convert IDENTIFY DEVICE page into string .SH "SYNOPSIS" .HP \w'void\ ata_id_string('u .BI "void ata_id_string(const\ u16\ *\ " "id" ", unsigned\ char\ *\ " "s" ", unsigned\ int\ " "ofs" ", unsigned\ int\ " "len" ");" .SH "ARGUMENTS" .PP \fIconst u16 * id\fR .RS 4 IDENTIFY DEVICE results we will examine .RE .PP \fIunsigned char * s\fR .RS 4 string into which data is output .RE .PP \fIunsigned int ofs\fR .RS 4 offset into identify device page .RE .PP \fIunsigned int len\fR .RS 4 length of string to return\&. must be an even number\&. .RE .SH "DESCRIPTION" .PP The strings in the IDENTIFY DEVICE page are broken up into 16\-bit chunks\&. Run through the string, and output each 8\-bit chunk linearly, regardless of platform\&. .PP LOCKING: caller\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br