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

NAME

6       scsi_device_get - get an additional reference to a scsi_device
7

SYNOPSIS

9       int scsi_device_get(struct scsi_device * sdev);
10

ARGUMENTS

12       sdev
13           device to get a reference to
14

DESCRIPTION

16       Gets a reference to the scsi_device and increments the use count of the
17       underlying LLDD module. You must hold host_lock of the parent Scsi_Host
18       or already have a reference when calling this.
19
20       This will fail if a device is deleted or cancelled, or when the LLD
21       module is in the process of being unloaded.
22

AUTHORS

24       James Bottomley <James.Bottomley@hansenpartnership.com>
25           Author.
26
27       Rob Landley <rob@landley.net>
28           Author.
29
31Kernel Hackers Manual 3.10         June 2019                SCSI_DEVICE_GET(9)
Impressum