1__SCSI_DEVICE_LOOKUP(9) SCSI mid layer __SCSI_DEVICE_LOOKUP(9)
2
3
4
6 __scsi_device_lookup - find a device given the host (UNLOCKED)
7
9 struct scsi_device * __scsi_device_lookup(struct Scsi_Host * shost,
10 uint channel, uint id,
11 uint lun);
12
14 shost
15 SCSI host pointer
16
17 channel
18 SCSI channel (zero if only one channel)
19
20 id
21 SCSI target number (physical unit number)
22
23 lun
24 SCSI Logical Unit Number
25
27 Looks up the scsi_device with the specified channel, id, lun for a
28 given host. The returned scsi_device does not have an additional
29 reference. You must hold the host´s host_lock over this call and any
30 access to the returned scsi_device.
31
33 The only reason why drivers would want to use this is because they need
34 to access the device list in irq context. Otherwise you really want to
35 use scsi_device_lookup instead.
36
38 James Bottomley <James.Bottomley@hansenpartnership.com>
39 Author.
40
41 Rob Landley <rob@landley.net>
42 Author.
43
45Kernel Hackers Manual 2.6. June 2019 __SCSI_DEVICE_LOOKUP(9)