---
name: "scsi_device_from_queue"
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_from_queue"
---

# scsi\_device\_from\_queue(9)

return sdev associated with a request\_queue

## NAME

scsi\_device\_from\_queue - return sdev associated with a request\_queue

## SYNOPSIS

**struct scsi\_device \* scsi\_device\_from\_queue(struct request\_queue \*** *q***);**

## ARGUMENTS

*q*

The request queue to return the sdev from

## DESCRIPTION

Return the sdev associated with a request queue or NULL if the request\_queue does not reference a SCSI device.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

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

Author.

## COPYRIGHT
