other versions
ATA_SCSI_QC_NEW(9) | libata SCSI translation/emulat | ATA_SCSI_QC_NEW(9) |
NAME¶
ata_scsi_qc_new - acquire new ata_queued_cmd referenceSYNOPSIS¶
struct ata_queued_cmd * ata_scsi_qc_new(struct ata_device * dev, struct scsi_cmnd * cmd);
ARGUMENTS¶
struct ata_device * devATA device to which the new command is attached
struct scsi_cmnd * cmd
SCSI command that originated this ATA command
DESCRIPTION¶
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.If a command was available, fill in the SCSI-specific portions of the structure with information on the current command.
LOCKING: spin_lock_irqsave(host lock)
RETURN¶
Command allocated, or NULL if none available.AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |