'\" t
.\"     Title: scsi_device_supports_vpd
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: September 2017
.\"    Manual: SCSI mid layer
.\"    Source: Kernel Hackers Manual 4.12.13
.\"  Language: English
.\"
.TH "SCSI_DEVICE_SUPPORTS" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "SCSI mid layer"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
scsi_device_supports_vpd \- test if a device supports VPD pages
.SH "SYNOPSIS"
.HP \w'int\ scsi_device_supports_vpd('u
.BI "int scsi_device_supports_vpd(struct\ scsi_device\ *\ " "sdev" ");"
.SH "ARGUMENTS"
.PP
\fIstruct scsi_device * sdev\fR
.RS 4
the
struct scsi_device
to test
.RE
.SH "DESCRIPTION"
.PP
If the \*(Aqtry_vpd_pages\*(Aq flag is set it takes precedence\&. Otherwise we will assume VPD pages are supported if the SCSI level is at least SPC\-3 and \*(Aqskip_vpd_pages\*(Aq is not set\&.
.SH "AUTHORS"
.PP
\fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&>
.RS 4
Author.
.RE
.PP
\fBRob Landley\fR <\&rob@landley.net\&>
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
