---
name: "ata_scsi_rw_xlat"
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_rw_xlat"
---

# ata\_scsi\_rw\_xlat(9)

Translate SCSI r/w command into an ATA one

## NAME

ata\_scsi\_rw\_xlat - Translate SCSI r/w command into an ATA one

## SYNOPSIS

**unsigned int ata\_scsi\_rw\_xlat(struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*qc*

Storage for translated ATA taskfile

## DESCRIPTION

Converts any of six SCSI read/write commands into the ATA counterpart, including starting sector (LBA), sector count, and taking into account the device's LBA48 support.

Commands **READ\_6**, **READ\_10**, **READ\_16**, **WRITE\_6**, **WRITE\_10**, and **WRITE\_16** are currently supported.

LOCKING: spin\_lock\_irqsave(host lock)

## RETURN

Zero on success, non-zero on error.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
