SCSI_DEVICE_GET(9) | SCSI mid layer | SCSI_DEVICE_GET(9) |
NAME¶
scsi_device_get - get an additional reference to a scsi_device
SYNOPSIS¶
int scsi_device_get(struct scsi_device * sdev);
ARGUMENTS¶
struct scsi_device * sdev
DESCRIPTION¶
Gets a reference to the scsi_device and increments the use count of the underlying LLDD module. You must hold host_lock of the parent Scsi_Host or already have a reference when calling this.
This will fail if a device is deleted or cancelled, or when the LLD module is in the process of being unloaded.
AUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <rob@landley.net>
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |