other versions
- stretch 4.9.168-1
ATA_SCSI_QUEUECMD(9) | libata SCSI translation/emulat | ATA_SCSI_QUEUECMD(9) |
NAME¶
ata_scsi_queuecmd - Issue SCSI cdb to libata-managed deviceSYNOPSIS¶
int ata_scsi_queuecmd(struct Scsi_Host * shost, struct scsi_cmnd * cmd);
ARGUMENTS¶
shostSCSI host of command to be sent
cmd
SCSI command to be sent
DESCRIPTION¶
In some cases, this function translates SCSI commands into ATA taskfiles, and queues the taskfiles to be sent to hardware. In other cases, this function simulates a SCSI device by evaluating and responding to certain SCSI commands. This creates the overall effect of ATA and ATAPI devices appearing as SCSI devices.LOCKING: ATA host lock
RETURN¶
Return value from __ata_scsi_queuecmd if cmd can be queued, 0 otherwise.AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |