1ATA_SCSI_QC_NEW(9)      libata SCSI translation/emulat      ATA_SCSI_QC_NEW(9)
2
3
4

NAME

6       ata_scsi_qc_new - acquire new ata_queued_cmd reference
7

SYNOPSIS

9       struct ata_queued_cmd * ata_scsi_qc_new(struct ata_device * dev,
10                                               struct scsi_cmnd * cmd,
11                                               void (*done) (struct scsi_cmnd *));
12

ARGUMENTS

14       dev
15           ATA device to which the new command is attached
16
17       cmd
18           SCSI command that originated this ATA command
19
20       done
21           SCSI command completion function
22

DESCRIPTION

24       Obtain a reference to an unused ata_queued_cmd structure, which is the
25       basic libata structure representing a single ATA command sent to the
26       hardware.
27
28       If a command was available, fill in the SCSI-specific portions of the
29       structure with information on the current command.
30

LOCKING

32       spin_lock_irqsave(host lock)
33

RETURNS

35       Command allocated, or NULL if none available.
36

AUTHOR

38       Jeff Garzik
39           Author.
40
42Kernel Hackers Manual 2.6.       November 2011              ATA_SCSI_QC_NEW(9)
Impressum