---
name: "ata_scsi_queuecmd"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_scsi_queuecmd"
---

# ata\_scsi\_queuecmd(9)

Issue SCSI cdb to libata-managed device

## NAME

ata\_scsi\_queuecmd - Issue SCSI cdb to libata-managed device

## SYNOPSIS

**int ata\_scsi\_queuecmd(struct Scsi\_Host \*** *shost***, struct scsi\_cmnd \*** *cmd***);**

## ARGUMENTS

*shost*

SCSI 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 Garzik**

Author.

## COPYRIGHT
