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                                  enum scsi_scan_mode rescan,
12                                  void * hostdata);
13

ARGUMENTS

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

DESCRIPTION

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

SCSI_SCAN_NO_RESPONSE

39       could not allocate or setup a scsi_device
40

SCSI_SCAN_TARGET_PRESENT

42       target responded, but no device is attached at the LUN
43

SCSI_SCAN_LUN_PRESENT

45       a new scsi_device was allocated and initialized
46

AUTHORS

48       James Bottomley <James.Bottomley@hansenpartnership.com>
49           Author.
50
51       Rob Landley <rob@landley.net>
52           Author.
53
55Kernel Hackers Manual 3.10         June 2019           SCSI_PROBE_AND_ADD_L(9)
Impressum