> I'm writing a SCSI HBA driver that simulates a bus with some
> ramdisk-backed disks attached to it. I've read through the HBA
> tutorial in Daemon News, but I'm still unsure how to tell the system
> about my pretend disk devices. I suspect part of the problem is that
> I don't actually have real devices or a real IO bus.
If this is meant to be an exercise in writing a CAM HBA driver, then you
need to teach your disk-emulation code about the basic SCSI commands
(INQUIRY, TEST UNIT READY, etc). The SCSI infrastructure will use these
commands to automatically detect your drives.
If you're writing a generic ramdisk, this is a really masochistic way to
go about doing it. 8)
--
\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
\\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message