1__SCSI_DEVICE_LOOKUP(9)         SCSI mid layer         __SCSI_DEVICE_LOOKUP(9)
2
3
4

NAME

6       __scsi_device_lookup_by_target - find a device given the target
7       (UNLOCKED)
8

SYNOPSIS

10       struct scsi_device *
11                                                           __scsi_device_lookup_by_target(struct scsi_target * starget,
12                                                           uint lun);
13

ARGUMENTS

15       starget
16           SCSI target pointer
17
18       lun
19           SCSI Logical Unit Number
20

DESCRIPTION

22       Looks up the scsi_device with the specified lun for a given starget.
23       The returned scsi_device does not have an additional reference. You
24       must hold the host's host_lock over this call and any access to the
25       returned scsi_device. A scsi_device in state SDEV_DEL is skipped.
26

NOTE

28       The only reason why drivers should use this is because they need to
29       access the device list in irq context. Otherwise you really want to use
30       scsi_device_lookup_by_target instead.
31

AUTHORS

33       James Bottomley <James.Bottomley@hansenpartnership.com>
34           Author.
35
36       Rob Landley <rob@landley.net>
37           Author.
38
40Kernel Hackers Manual 3.10         June 2019           __SCSI_DEVICE_LOOKUP(9)
Impressum