'\" t .\" Title: ata_scsi_queuecmd .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: libata SCSI translation/emulation .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "ATA_SCSI_QUEUECMD" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "libata SCSI translation/emulat" .\" ----------------------------------------------------------------- .\" * 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_scsi_queuecmd \- Issue SCSI cdb to libata\-managed device .SH "SYNOPSIS" .HP \w'int\ ata_scsi_queuecmd('u .BI "int ata_scsi_queuecmd(struct\ Scsi_Host\ *\ " "shost" ", struct\ scsi_cmnd\ *\ " "cmd" ");" .SH "ARGUMENTS" .PP \fIstruct Scsi_Host * shost\fR .RS 4 SCSI host of command to be sent .RE .PP \fIstruct scsi_cmnd * cmd\fR .RS 4 SCSI command to be sent .RE .SH "DESCRIPTION" .PP In some cases, this function translates SCSI commands into ATA taskfiles, and queues the taskfiles to be sent to hardware\&. In other cases, this function simulates a SCSI device by evaluating and responding to certain SCSI commands\&. This creates the overall effect of ATA and ATAPI devices appearing as SCSI devices\&. .PP LOCKING: ATA host lock .SH "RETURN" .PP Return value from \fB__ata_scsi_queuecmd\fR if \fIcmd\fR can be queued, 0 otherwise\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br