.\" 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_QC_NEW" "9" "09 October 2005" "" ""
.SH NAME
ata_scsi_qc_new \- acquire new ata_queued_cmd reference
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct ata_queued_cmd * ata_scsi_qc_new (struct ata_port * \fIap\fB, struct ata_device * \fIdev\fB, struct scsi_cmnd * \fIcmd\fB, void (*\fIdone\fB)
struct scsi_cmnd *);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
ATA port to which the new command is attached
.TP
\fB\fIdev\fB\fR
ATA device to which the new command is attached
.TP
\fB\fIcmd\fB\fR
SCSI command that originated this ATA command
.TP
\fB\fIdone\fB\fR
SCSI command completion function
.SH "DESCRIPTION"
.PP
Obtain a reference to an unused ata_queued_cmd structure,
which is the basic libata structure representing a single
ATA command sent to the hardware.
.PP
If a command was available, fill in the SCSI-specific
portions of the structure with information on the
current command.
.SH "LOCKING"
.PP
spin_lock_irqsave(host_set lock)
.SH "RETURNS"
.PP
Command allocated, or NULL if none available.