scsi_device_from_queue
Prev | drivers/scsi/scsi_lib.c | Next

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

Prev | Up | Next
scsi_execute | Home | scsi_mode_select