1ATA_SCSI_FIND_DEV(9) libata SCSI translation/emulat ATA_SCSI_FIND_DEV(9)
2
3
4
6 ata_scsi_find_dev - lookup ata_device from scsi_cmnd
7
9 struct ata_device * ata_scsi_find_dev(struct ata_port * ap,
10 const struct scsi_device * scsidev);
11
13 ap
14 ATA port to which the device is attached
15
16 scsidev
17 SCSI device from which we derive the ATA device
18
20 Given various information provided in struct scsi_cmnd, map that onto
21 an ATA bus, and using that mapping determine which ata_device is
22 associated with the SCSI command to be sent.
23
25 spin_lock_irqsave(host lock)
26
28 Associated ATA device, or NULL if not found.
29
31 Jeff Garzik
32 Author.
33
35Kernel Hackers Manual 2.6. November 2011 ATA_SCSI_FIND_DEV(9)