void scsi_scan_target (struct Scsi_Host * shost, unsigned int channel, unsigned int id);
Scan the target id on shost, channel, and id. Scan at least LUN 0, and possibly all LUNs on the target id.
Use the pre-allocated sdevscan as a handle for the scanning. This function sets sdevscan->host, sdevscan->id and sdevscan->lun; the scanning functions modify sdevscan->lun.
First try a REPORT LUN scan, if that does not scan the target, do a sequential scan of LUNs on the target id.
Scan the target id on shost, channel, and id. Scan at least LUN 0, and possibly all LUNs on the target id.
Use the pre-allocated sdevscan as a handle for the scanning. This function sets sdevscan->host, sdevscan->id and sdevscan->lun; the scanning functions modify sdevscan->lun.
First try a REPORT LUN scan, if that does not scan the target, do a sequential scan of LUNs on the target id.