From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 7 20:52:12 2004 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 3DBDF16A4D0 for ; Wed, 7 Jan 2004 20:52:12 -0800 (PST) Received: from web21509.mail.yahoo.com (web21509.mail.yahoo.com [66.163.169.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 485BA43D3F for ; Wed, 7 Jan 2004 20:52:09 -0800 (PST) (envelope-from chhavi_kansal@yahoo.com) Message-ID: <20040108045209.38601.qmail@web21509.mail.yahoo.com> Received: from [202.56.254.13] by web21509.mail.yahoo.com via HTTP; Wed, 07 Jan 2004 20:52:09 PST Date: Wed, 7 Jan 2004 20:52:09 -0800 (PST) From: Chhavi Kansal To: freebsd-scsi@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FreeBsd 4.7: scsi target device driver 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: Thu, 08 Jan 2004 04:52:12 -0000 Hi All, I am in the process of writing a scsi target driver on FreeBSD 4.7, as a module. I have faced some problems like, registering the module with CAM, probing the scsi devices connected to the host etc., I'm from the world of linux, wherein if I register the scsi device driver module ( not the HBA ), using scsi_register_module(...) I will get the Scsi_Device *SDp to my template implementations like init, detect, attach, detach, finish. On FreeBSD, there must be the way to do the same kinda thing, by registering my module with CAM layer. If anyone could throw some light, that would be of great help. Thanks in advance, Chhavi Kansal. --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes