.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "ATA_SCSI_FIND_DEV" "9" "09 October 2005" "" "" .SH NAME ata_scsi_find_dev \- lookup ata_device from scsi_cmnd .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct ata_device * ata_scsi_find_dev (struct ata_port * \fIap\fB, struct scsi_device * \fIscsidev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIap\fB\fR ATA port to which the device is attached .TP \fB\fIscsidev\fB\fR SCSI device from which we derive the ATA device .SH "DESCRIPTION" .PP Given 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. .SH "LOCKING" .PP spin_lock_irqsave(host_set lock) .SH "RETURNS" .PP Associated ATA device, or NULL if not found.