'\" t .\" Title: ata_dev_init_params .\" 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_DEV_INIT_PARAMS" "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_dev_init_params \- Issue INIT DEV PARAMS command .SH "SYNOPSIS" .HP \w'unsigned\ int\ ata_dev_init_params('u .BI "unsigned int ata_dev_init_params(struct\ ata_device\ *\ " "dev" ", u16\ " "heads" ", u16\ " "sectors" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to which command will be sent .RE .PP \fIheads\fR .RS 4 Number of heads (taskfile parameter) .RE .PP \fIsectors\fR .RS 4 Number of sectors (taskfile parameter) .RE .SH "DESCRIPTION" .PP LOCKING: Kernel thread context (may sleep) .SH "RETURN" .PP 0 on success, AC_ERR_* mask otherwise\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br