1ATA_SCSI_QC_NEW(9) libata SCSI translation/emulat ATA_SCSI_QC_NEW(9)
2
3
4
6 ata_scsi_qc_new - acquire new ata_queued_cmd reference
7
9 struct ata_queued_cmd * ata_scsi_qc_new(struct ata_device * dev,
10 struct scsi_cmnd * cmd);
11
13 dev
14 ATA device to which the new command is attached
15
16 cmd
17 SCSI command that originated this ATA command
18
20 Obtain a reference to an unused ata_queued_cmd structure, which is the
21 basic libata structure representing a single ATA command sent to the
22 hardware.
23
24 If a command was available, fill in the SCSI-specific portions of the
25 structure with information on the current command.
26
28 spin_lock_irqsave(host lock)
29
31 Command allocated, or NULL if none available.
32
34 Jeff Garzik
35 Author.
36
38Kernel Hackers Manual 3.10 June 2019 ATA_SCSI_QC_NEW(9)