suse man page for ata_scsi_translate

Query: ata_scsi_translate

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ATA_SCSI_TRANSLATE(9)					  libata SCSI translation/emulat				     ATA_SCSI_TRANSLATE(9)

NAME
ata_scsi_translate - Translate then issue SCSI command to ATA device
SYNOPSIS
int ata_scsi_translate(struct ata_device * dev, struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd *), ata_xlat_func_t xlat_func);
ARGUMENTS
dev ATA device to which the command is addressed cmd SCSI command to execute done SCSI command completion function xlat_func Actor which translates cmd to an ATA taskfile
DESCRIPTION
Our ->queuecommand function has decided that the SCSI command issued can be directly translated into an ATA command, rather than handled internally. This function sets up an ata_queued_cmd structure for the SCSI command, and sends that ata_queued_cmd to the hardware. The xlat_func argument (actor) returns 0 if ready to execute ATA command, else 1 to finish translation. If 1 is returned then cmd->result (and possibly cmd->sense_buffer) are assumed to be set reflecting an error condition or clean (early) termination.
LOCKING
spin_lock_irqsave(host lock)
RETURNS
0 on success, SCSI_ML_QUEUE_DEVICE_BUSY if the command needs to be deferred.
AUTHOR
Jeff Garzik Author.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 ATA_SCSI_TRANSLATE(9)
Related Man Pages
scsi_satl(8) - centos
sg_sat_identify(8) - centos
sg_sat_phy_event(8) - suse
ata_scsi_translate(9) - suse
atapi_ide(7) - osf1
Similar Topics in the Unix Linux Community
PowerMac 4400 YLD 3.0
smartmontools 5.38 (Default branch)
Opinion on modification for SMARTMON
Core File issue!Need help in DBX cmd's!
Unable to execute the complete cmd - using find command