'\" t .\" Title: ata_do_simple_cmd .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "ATA_DO_SIMPLE_CMD" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_do_simple_cmd \- execute simple internal command .SH "SYNOPSIS" .HP \w'unsigned\ int\ ata_do_simple_cmd('u .BI "unsigned int ata_do_simple_cmd(struct\ ata_device\ *\ " "dev" ", u8\ " "cmd" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to which the command is sent .RE .PP \fIcmd\fR .RS 4 Opcode to execute .RE .SH "DESCRIPTION" .PP Execute a \*(Aqsimple\*(Aq command, that only consists of the opcode \*(Aqcmd\*(Aq itself, without filling any other registers .SH "LOCKING" .PP Kernel thread context (may sleep)\&. .SH "RETURNS" .PP Zero on success, AC_ERR_* mask on failure .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br