'\" t .\" Title: scsi_dev_info_list_add .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCSI_DEV_INFO_LIST_A" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_dev_info_list_add \- add one dev_info list entry\&. .SH "SYNOPSIS" .HP \w'int\ scsi_dev_info_list_add('u .BI "int scsi_dev_info_list_add(int\ " "compatible" ", char\ *\ " "vendor" ", char\ *\ " "model" ", char\ *\ " "strflags" ", int\ " "flags" ");" .SH "ARGUMENTS" .PP \fIcompatible\fR .RS 4 if true, null terminate short strings\&. Otherwise space pad\&. .RE .PP \fIvendor\fR .RS 4 vendor string .RE .PP \fImodel\fR .RS 4 model (product) string .RE .PP \fIstrflags\fR .RS 4 integer string .RE .PP \fIflags\fR .RS 4 if strflags NULL, use this flag value .RE .SH "DESCRIPTION" .PP Create and add one dev_info entry for \fIvendor\fR, \fImodel\fR, \fIstrflags\fR or \fIflag\fR\&. If \fIcompatible\fR, add to the tail of the list, do not space pad, and set devinfo\->compatible\&. The scsi_static_device_list entries are added with \fIcompatible\fR 1 and \fIclfags\fR NULL\&. .SH "RETURN" .PP 0 OK, \-error on failure\&. .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