.\" 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 (UNLOCKED)
.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
-- undescribed --
.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 does not have an additional reference.
You must hold the host's host_lock over this call and any access to the
returned scsi_device.
.SH "NOTE"
.PP
The only reason why drivers would want to use this is because
they're need to access the device list in irq context. Otherwise you
really want to use scsi_device_lookup instead.