Re: Mid-layer API?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux