Help - interface between Linux SCSI mid-level driver and lower-level driver

Lee Xing
2004-03-24T20:12:44Z

Hi,

I'm not SCSI driver expert. Sorry for asking simple questions here. Your help would be appreciated.

We are working on a new prototype that uses a FC HBA on Linux. Our FC driver detects the physical FC disks as SCSI devices and reports them to a higher_layer (not Linux SCSI mid-level driver) in Linux kernel. Now, we need to create another layer that sits in between the existing higher_layer and Linux SCSI mid-level driver, and to register the detected FC/SCSI devices as Linux sd/sg devices.

My question is what are the interface functions in SCSI mid-level driver we can invoke to register the detected FC/SCSI devices as Linux sg/sd devices. Sample code and documents would be a great help.

Thanks,

L.