[8732] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: SCSI driver question

daemon@ATHENA.MIT.EDU (Eric Lee Green)
Mon May 1 11:50:22 2000

Message-ID: <390DA54D.3A2D15EF@estinc.com>
Date:	Mon, 01 May 2000 08:39:57 -0700
From: Eric Lee Green <eric@estinc.com>
MIME-Version: 1.0
To: Mark Elkins <mokes2001@yahoo.com>
Cc: linux-scsi@vger.rutgers.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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                         eric@estinc.com
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 majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post