1SCSI_ADD_LUN(9)                 SCSI mid layer                 SCSI_ADD_LUN(9)
2
3
4

NAME

6       scsi_add_lun - allocate and fully initialze a scsi_device
7

SYNOPSIS

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

ARGUMENTS

13       sdev
14           holds information to be stored in the new scsi_device
15
16       inq_result
17           holds the result of a previous INQUIRY to the LUN
18
19       bflags
20           black/white list flag
21
22       async
23           1 if this device is being scanned asynchronously
24

DESCRIPTION

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

SCSI_SCAN_NO_RESPONSE

30       could not allocate or setup a scsi_device
31

SCSI_SCAN_LUN_PRESENT

33       a new scsi_device was allocated and initialized
34

AUTHORS

36       James Bottomley <James.Bottomley@hansenpartnership.com>
37           Author.
38
39       Rob Landley <rob@landley.net>
40           Author.
41
43Kernel Hackers Manual 2.6.         June 2019                   SCSI_ADD_LUN(9)
Impressum