Query: ata_scsi_translate
OS: centos
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)NAMEata_scsi_translate - Translate then issue SCSI command to ATA deviceSYNOPSISint ata_scsi_translate(struct ata_device * dev, struct scsi_cmnd * cmd, ata_xlat_func_t xlat_func);ARGUMENTSdev ATA device to which the command is addressed cmd SCSI command to execute xlat_func Actor which translates cmd to an ATA taskfileDESCRIPTIONOur ->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.LOCKINGspin_lock_irqsave(host lock)RETURNS0 on success, SCSI_ML_QUEUE_DEVICE_BUSY if the command needs to be deferred.AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 ATA_SCSI_TRANSLATE(9)
Related Man Pages |
---|
sg_sat_identify(8) - centos |
sg_scan(8) - centos |
scsi_satl(8) - debian |
sg_scan(8) - debian |
sg_sat_set_features(8) - suse |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Set hard block limit for user using quota |
Tar Command |
Docker learning Phase-I |
Please Welcome Dave Munro to the Moderator Team! |