Mark Elkins wrote:
> I'm trying to directly read/write a SCSI disk. By
> "direct" access I mean that I do not want the data to
> be buffered, and that I can supply a physical address
> (or a virtual address following a bus_to_virt call)
> for the data buffers. Thus, the data to be written (or
> buffers for read data) can possibly even be located on
> a PCI device. Does anyone have any idea as to the
> appropriate entry point/mechanism for such operations?
>
> Related to this, can anyone point me to good
> documentation regarding the Linux SCSI architecture?
> Most of the docs I've seen are ancient, nothing
> pertaining to 2.2 or higher...
"Read the Source, Luke" seems to be the usual response to documentation
problems with the Linux kernel. Rather unsatisfying, but (shrug).
http://www.torque.net/sg/
is the place where the Linux SCSI Generic driver lives. This gives you direct
access to the SCSI bus via an interface to the low-level SCSI device drivers.
There is sample source code there showing you how to do various things such
as, e.g., read/write blocks of data on a hard drive via the low-level READ and
WRITE commands.
--
Eric Lee Green [EMAIL PROTECTED]
Software Engineer Visit our Web page:
Enhanced Software Technologies, Inc. http://www.estinc.com/
(602) 470-1115 voice (602) 470-1116 fax
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]