int sd_probe (struct device * dev);
Returns 0 if successful (or not interested in this scsi device (e.g. scanner)); 1 when there is an error.
Returns 0 if successful (or not interested in this scsi device (e.g. scanner)); 1 when there is an error.
this function is invoked from the scsi mid-level. This function sets up the mapping between a given <host,channel,id,lun> (found in sdp) and new device name (e.g. /dev/sda). More precisely it is the block device major and minor number that is chosen here.
Assume sd_attach is not re-entrant (for time being) Also think about sd_attach and sd_remove running coincidentally.