ata_scsi_rw_xlat

Langue: en

Autres versions - même langue

Version: June 2009 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)

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)

RETURNS

Zero on success, non-zero on error.

AUTHOR

Jeff Garzik

Author.