Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 23:56:41 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        Aniruddha Bohra <bohra@cs.rutgers.edu>
Cc:        freebsd-scsi@FreeBSD.org
Subject:   Re: Emulating a SCSI device
Message-ID:  <20030602235514.J22029@root.org>
In-Reply-To: <3ED3CCFF.4080507@cs.rutgers.edu>
References:  <3ED3CCFF.4080507@cs.rutgers.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 May 2003, Aniruddha Bohra wrote:
>     I am trying to write a SIM module for FreeBSD which basically
> emulates a SCSI controller with a disk attached at target 0 lun 0.

What is your hardware?  Are you using sys/cam/scsi/scsi_target and
src/share/examples/scsi_target?

>     I go as far as the action function of the controller getting called
> with a XPT_PATH_INQ - where I fill in the fake data.
>
>     Nothing happens after that. I have looked for documentation
> of how to get the psuedo disk attached to the da driver but did
> not make much headway.

You have to call xpt_done() on the CCB to send it back to the caller.

>     My question is : How do I get the da or any SCSI peripheral
> driver attach to the emulated disk.
>
>     I would appreciate any help or pointers.

More information is needed (see questions above).

-Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030602235514.J22029>