other versions
SCSI_ADD_LUN(9) | SCSI mid layer | SCSI_ADD_LUN(9) |
NAME¶
scsi_add_lun - allocate and fully initialze a scsi_deviceSYNOPSIS¶
int scsi_add_lun(struct scsi_device * sdev, unsigned char * inq_result, int * bflags, int async);
ARGUMENTS¶
struct scsi_device * sdevholds information to be stored in the new
scsi_device
unsigned char * inq_result
holds the result of a previous INQUIRY to the LUN
int * bflags
black/white list flag
int async
1 if this device is being scanned asynchronously
DESCRIPTION¶
Initialize the scsi_device sdev. Optionally set fields based on values in *bflags.RETURN¶
SCSI_SCAN_NO_RESPONSE: could not allocate or setup a scsi_device SCSI_SCAN_LUN_PRESENT: a new scsi_device was allocated and initializedAUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>Author.
Rob Landley <rob@landley.net>
Author.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |