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

NAME

6       scsi_device_lookup - find a device given the host
7

SYNOPSIS

9       struct scsi_device * scsi_device_lookup(struct Scsi_Host * shost,
10                                               uint channel, uint id,
11                                               uint lun);
12

ARGUMENTS

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

DESCRIPTION

27       Looks up the scsi_device with the specified channel, id, lun for a
28       given host. The returned scsi_device has an additional reference that
29       needs to be released with scsi_device_put once you´re done with it.
30

AUTHORS

32       James Bottomley <James.Bottomley@hansenpartnership.com>
33           Author.
34
35       Rob Landley <rob@landley.net>
36           Author.
37
39Kernel Hackers Manual 2.6.         June 2019             SCSI_DEVICE_LOOKUP(9)
Impressum