From owner-freebsd-scsi Wed Apr 3 7:54:34 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 4469737B417 for ; Wed, 3 Apr 2002 07:54:30 -0800 (PST) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g33FsK871164; Wed, 3 Apr 2002 08:54:20 -0700 (MST) (envelope-from ken) Date: Wed, 3 Apr 2002 08:54:19 -0700 From: "Kenneth D. Merry" To: Yassar S Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI Callback function not getting called Message-ID: <20020403085419.A71134@panzer.kdm.org> References: <755FA95DB839D211856B0008C7287D930856282A@kecmsg02.ad.infosys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <755FA95DB839D211856B0008C7287D930856282A@kecmsg02.ad.infosys.com>; from yassars@infy.com on Wed, Apr 03, 2002 at 04:00:24PM +0530 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Apr 03, 2002 at 16:00:24 +0530, Yassar S wrote: > Hi All, > > What needs to be done for the callback function to get called > after a SCSI operation through the SIM layer functions? > > Is it not enough to provide the callback function pointer > to the scsi driver calls like scsi_read_write. If you're writing a driver, you need to call xpt_done() for the CCB once the transaction has completed. Look in src/sys/dev/aic7xxx/aic7xxx_freebsd.c for examples on how command queueing and completion works in SIMs. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message