Query: ata_scsi_find_dev
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATA_SCSI_FIND_DEV(9) libata SCSI translation/emulat ATA_SCSI_FIND_DEV(9)NAMEata_scsi_find_dev - lookup ata_device from scsi_cmndSYNOPSISstruct ata_device * ata_scsi_find_dev(struct ata_port * ap, const struct scsi_device * scsidev);ARGUMENTSap ATA port to which the device is attached scsidev SCSI device from which we derive the ATA deviceDESCRIPTIONGiven various information provided in struct scsi_cmnd, map that onto an ATA bus, and using that mapping determine which ata_device is associated with the SCSI command to be sent.LOCKINGspin_lock_irqsave(host lock)RETURNSAssociated ATA device, or NULL if not found.AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 ATA_SCSI_FIND_DEV(9)