'\" t .\" Title: scsi_add_lun .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "SCSI_ADD_LUN" "9" "July 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_add_lun \- allocate and fully initialze a scsi_device .SH "SYNOPSIS" .HP \w'int\ scsi_add_lun('u .BI "int scsi_add_lun(struct\ scsi_device\ *\ " "sdev" ", unsigned\ char\ *\ " "inq_result" ", int\ *\ " "bflags" ", int\ " "async" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_device * sdev\fR .RS 4 holds information to be stored in the new scsi_device .RE .PP \fIunsigned char * inq_result\fR .RS 4 holds the result of a previous INQUIRY to the LUN .RE .PP \fIint * bflags\fR .RS 4 black/white list flag .RE .PP \fIint async\fR .RS 4 1 if this device is being scanned asynchronously .RE .SH "DESCRIPTION" .PP Initialize the scsi_device \fIsdev\fR\&. Optionally set fields based on values in *\fIbflags\fR\&. .SH "RETURN" .PP SCSI_SCAN_NO_RESPONSE: could not allocate or setup a scsi_device SCSI_SCAN_LUN_PRESENT: a new scsi_device was allocated and initialized .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