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_Host * shost,
10                             struct scsi_cmnd * cmd);
11

ARGUMENTS

13       shost
14           SCSI host of command to be sent
15
16       cmd
17           SCSI command to be sent
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       ATA 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 3.10         June 2019              ATA_SCSI_QUEUECMD(9)
Impressum