.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "ATA_SCSI_QUEUECMD" "9" "09 October 2005" "" "" .SH NAME ata_scsi_queuecmd \- Issue SCSI cdb to libata-managed device .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ata_scsi_queuecmd (struct scsi_cmnd * \fIcmd\fB, void (*\fIdone\fB) struct scsi_cmnd *); \fR .SH "ARGUMENTS" .TP \fB\fIcmd\fB\fR SCSI command to be sent .TP \fB\fIdone\fB\fR Completion function, called when command is complete .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. .SH "LOCKING" .PP Releases scsi-layer-held lock, and obtains host_set lock. .SH "RETURNS" .PP Zero.