From owner-freebsd-scsi@FreeBSD.ORG Tue May 27 13:43:56 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1B9837B401 for ; Tue, 27 May 2003 13:43:55 -0700 (PDT) Received: from aramis.rutgers.edu (aramis.rutgers.edu [128.6.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40AFD43F75 for ; Tue, 27 May 2003 13:43:55 -0700 (PDT) (envelope-from bohra@cs.rutgers.edu) Received: from cs.rutgers.edu (sirtaki.rutgers.edu [128.6.171.146]) by aramis.rutgers.edu (8.11.7+Sun/8.8.8) with ESMTP id h4RKhsk17790 for ; Tue, 27 May 2003 16:43:54 -0400 (EDT) Message-ID: <3ED3CCFF.4080507@cs.rutgers.edu> Date: Tue, 27 May 2003 16:39:27 -0400 From: Aniruddha Bohra User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-scsi@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Emulating a SCSI device X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 20:43:56 -0000 Hello 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. 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. 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. Thanks Aniruddha