1. NAME▲

ata_scsi_queuecmd - Issue SCSI cdb to libata-managed device

2. SYNOPSIS ▲

int ata_scsi_queuecmd(struct Scsi_Host *  shost , struct scsi_cmnd *  cmd );

3. ARGUMENTS ▲

shost
    SCSI host of command to be sent

cmd
    SCSI command to be sent

4. 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.

5. LOCKING ▲

ATA host lock

6. RETURNS ▲

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

7. AUTHOR ▲

Jeff Garzik
    Author.

8. COPYRIGHT ▲