--- "Haefliger, Juerg" <Juerg.Haefliger@xxxxxx> wrote: > I have a kernel driver that needs to send SCSI commands and data to a FC > disk attached to a Qlogic FC HBA. I'm hooking into the SCSI mid-layer by > calling scsi_do_req(). It seems to work but I'm not sure if this is the > right way of doing things. Is scsi_do_req the right entry point into the > mid-layer or should I use something else? Or should I hook into > something else than the mid-layer? Juerg, The answer to your question depends on the answer to this question: Who is generating the commands and data, or loosely where are the commands and data coming from? Once you've answered this, then you can take a look at who (or what) is the midlayer servicing. Sketch that on paper. Then chart on another sheet of paper the complete path of the commands and data, from the origin to the point you want to "send" them to the FC disk and compare that the above chart. This will give you the answer of where you're supposed to "hook into" and why. Good luck! Luben > And finally, is there any > documentation talking about the mid-layer API? > > Any help is greatly appreciated. > > Thanks > ...juerg > > - > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html