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

NAME

6       scsi_probe_and_add_lun - probe a LUN, if a LUN is found add it
7

SYNOPSIS

9       int scsi_probe_and_add_lun(struct scsi_target * starget, uint lun,
10                                  int * bflagsp, struct scsi_device ** sdevp,
11                                  int rescan, void * hostdata);
12

ARGUMENTS

14       starget
15           pointer to target device structure
16
17       lun
18           LUN of target device
19
20       bflagsp
21           store bflags here if not NULL
22
23       sdevp
24           probe the LUN corresponding to this scsi_device
25
26       rescan
27           if nonzero skip some code only needed on first scan
28
29       hostdata
30           passed to scsi_alloc_sdev
31

DESCRIPTION

33       Call scsi_probe_lun, if a LUN with an attached device is found,
34       allocate and set it up by calling scsi_add_lun.
35

SCSI_SCAN_NO_RESPONSE

37       could not allocate or setup a scsi_device
38

SCSI_SCAN_TARGET_PRESENT

40       target responded, but no device is attached at the LUN
41

SCSI_SCAN_LUN_PRESENT

43       a new scsi_device was allocated and initialized
44

AUTHORS

46       James Bottomley <James.Bottomley@hansenpartnership.com>
47           Author.
48
49       Rob Landley <rob@landley.net>
50           Author.
51
53Kernel Hackers Manual 2.6.       November 2011         SCSI_PROBE_AND_ADD_L(9)
Impressum