.\" 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_BY_TARGET" "9" "09 October 2005" "" ""
.SH NAME
__scsi_device_lookup_by_target \- find a device given the target (UNLOCKED)
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct scsi_device * __scsi_device_lookup_by_target (struct scsi_target * \fIstarget\fB, uint \fIlun\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIstarget\fB\fR
SCSI target pointer
.TP
\fB\fIlun\fB\fR
SCSI Logical Unit Number
.SH "DESCRIPTION"
.PP
Looks up the scsi_device with the specified \fIlun\fR for a give
\fIstarget\fR\&. 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_by_target instead.