.\" 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 "SCSI_DEVICE_LOOKUP" "" "06 October 2005" "" "" .SH NAME scsi_device_lookup \- find a device given the host .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct scsi_device * scsi_device_lookup (struct Scsi_Host * \fIshost\fB, uint \fIchannel\fB, uint \fIid\fB, uint \fIlun\fB); \fR .SH "ARGUMENTS" .TP \fB\fIshost\fB\fR SCSI host pointer .TP \fB\fIchannel\fB\fR SCSI channel (zero if only one channel) .TP \fB\fIid\fB\fR SCSI target number (physical unit number) .TP \fB\fIlun\fB\fR SCSI Logical Unit Number .SH "DESCRIPTION" .PP Looks up the scsi_device with the specified \fIchannel\fR, \fIid\fR, \fIlun\fR for a give host. The returned scsi_device has an additional reference that needs to be release with scsi_host_put once you're done with it.