Xref: utzoo comp.sources.wanted:15362 comp.periphs.scsi:1940 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!tuvie!nestroy!usenet From: mah@dec1.wu-wien.ac.at (Michael Haberler) Newsgroups: comp.sources.wanted,comp.periphs.scsi Subject: Re: Source code to manipulate SCSI command descriptor block Message-ID: <1991Feb12.150751.29404@nestroy.wu-wien.ac.at> Date: 12 Feb 91 15:07:51 GMT References: <1991Jan23.174708@kboeng.enet.dec.com> Sender: usenet@nestroy.wu-wien.ac.at (The Usenet User) Reply-To: mah@nestroy.wu-wien.ac.at Organization: Wirtschaftsuniversitaet Wien Lines: 30 In article <1991Jan23.174708@kboeng.enet.dec.com>, heiden@kboeng.enet.dec.com (Matthias Heiden) writes: |> |> I need to write software (pref. C) to exercise basic and advanced SCSI |> functionality. I need higher level routines which would interactively |> enable me to talk to the SCSI device by setting up the command descriptor |> block. That depends on the OS and SCSI driver you're using. If you have a HP9000/300 with a SCSI board around, its fairly easy; there's a special ioctl(2) call which allows you to send an arbitrary SCSI command to a device, and get it's reply. I found this idea much more useful than having a bunch of special ioctl's for formatting, reading capacity and the like. I hope more manufacturers adopt this idea; it makes it very easy to write userland programs to talk to weird devices or cause special functions in a device the original author of the driver did'nt think of. I dont know of any other brands of SCSI drivers which support something along these lines (btw: couldnt you talk your DECstation folks to implement such an animal?). - michael |> I guess (or my hope is that) similar tasks have already been done and |> that I could build upon this experience before reinventing such an |> application. Any hint or pointer to existing software is greatly |> appreciated. |> Thanks in advance, Matthias Heiden |>