.\" 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
.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 \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.