---
name: "scsi_device_get"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_device_get"
---

# scsi\_device\_get(9)

get an additional reference to a scsi\_device

## NAME

scsi\_device\_get - get an additional reference to a scsi\_device

## SYNOPSIS

**int scsi\_device\_get(struct scsi\_device \*** *sdev***);**

## ARGUMENTS

*sdev*

device to get a reference to

## 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\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
