'\" t .\" Title: scsi_get_device_flags .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "SCSI_GET_DEVICE_FLAG" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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_get_device_flags \- get device specific flags from the dynamic device list\&. .SH "SYNOPSIS" .HP \w'int\ scsi_get_device_flags('u .BI "int scsi_get_device_flags(struct\ scsi_device\ *\ " "sdev" ", const\ unsigned\ char\ *\ " "vendor" ", const\ unsigned\ char\ *\ " "model" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_device * sdev\fR .RS 4 &scsi_device to get flags for .RE .PP \fIconst unsigned char * vendor\fR .RS 4 vendor name .RE .PP \fIconst unsigned char * model\fR .RS 4 model name .RE .SH "DESCRIPTION" .PP Search the global scsi_dev_info_list (specified by list zero) for an entry matching \fIvendor\fR and \fImodel\fR, if found, return the matching flags value, else return the host or global default settings\&. Called during scan time\&. .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