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

NAME

6       ata_scsi_queuecmd - Issue SCSI cdb to libata-managed device
7

SYNOPSIS

9       int ata_scsi_queuecmd(struct scsi_cmnd * cmd,
10                             void (*done) (struct scsi_cmnd *));
11

ARGUMENTS

13       cmd
14           SCSI command to be sent
15
16       done
17           Completion function, called when command is complete
18

DESCRIPTION

20       In some cases, this function translates SCSI commands into ATA
21       taskfiles, and queues the taskfiles to be sent to hardware. In other
22       cases, this function simulates a SCSI device by evaluating and
23       responding to certain SCSI commands. This creates the overall effect of
24       ATA and ATAPI devices appearing as SCSI devices.
25

LOCKING

27       Releases scsi-layer-held lock, and obtains host lock.
28

RETURNS

30       Return value from __ata_scsi_queuecmd if cmd can be queued, 0
31       otherwise.
32

AUTHOR

34       Jeff Garzik
35           Author.
36
38Kernel Hackers Manual 2.6.         June 2019              ATA_SCSI_QUEUECMD(9)
Impressum