Probe a lun, if a lun is found add it
int scsi_probe_and_add_lun(struct scsi_target * starget, uint lun, int * bflagsp, struct scsi_device ** sdevp, int rescan, void * hostdata);
starget
pointer to target device structure
lun
LUN of target device
bflagsp
store bflags here if not NULL
sdevp
probe the LUN corresponding to this scsi_device
rescan
if nonzero skip some code only needed on first scan
hostdata
passed to scsi_alloc_sdev
Call scsi_probe_lun, if a LUN with an attached device is found, allocate and set it up by calling scsi_add_lun.
could not allocate or setup a scsi_device
target responded, but no device is attached at the LUN
a new scsi_device was allocated and initialized