Haefliger, Juerg wrote:
> Hi Luben,
>
> I did but I still don't get it :-) In fact I'm more confused now. Why
> host_template? Isn't that function used to register an LLD with the
> mid-layer? I'm trying to tap into the other side of the mid-layer.
On the driver side (HBA) you've got the host template, and queue_command().
On the other side (the interface used by sg/sd/st) used to live
scsi_do_req() (gone in 2.6.18) which is now scsi_execute_async() and
friends.
The header files/function templates should be fairly self-explanatory
apart from the confusing use of old-style names, the 'void *buffer' is
the scatter gather list, the 'unsigned buflen' is the total amount of
data you want to transfer, and use_sg is the number of scatter-gather
elements.
Hope that gives you some place to start with, if you just want to send
SCSI commands into the kernel.
Regards,
Steve
-
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