1. NAME

scsi_add_lun - allocate and fully initialze a scsi_device

2. SYNOPSIS

int scsi_add_lun(struct scsi_device *  sdev , unsigned char *  inq_result , int *  bflags , int  async );

3. ARGUMENTS

sdev
    holds information to be stored in the new scsi_device

inq_result
    holds the result of a previous INQUIRY to the LUN

bflags
    black/white list flag

async
    1 if this device is being scanned asynchronously

4. DESCRIPTION

Initialize the scsi_device sdev. Optionally set fields based on values in *bflags.

5. SCSI_SCAN_NO_RESPONSE

could not allocate or setup a scsi_device

6. SCSI_SCAN_LUN_PRESENT

a new scsi_device was allocated and initialized

7. AUTHORS

James Bottomley < >
    Author.

Rob Landley < >
    Author.

8. COPYRIGHT