From owner-freebsd-scsi@FreeBSD.ORG Tue Jun 1 17:53:17 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 8E14816A4CE for ; Tue, 1 Jun 2004 17:53:17 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC4643D45 for ; Tue, 1 Jun 2004 17:53:17 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id i520r6ui073303; Tue, 1 Jun 2004 18:53:06 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id i520r61h073302; Tue, 1 Jun 2004 18:53:06 -0600 (MDT) (envelope-from ken) Date: Tue, 1 Jun 2004 18:53:06 -0600 From: "Kenneth D. Merry" To: Aniruddha Bohra Message-ID: <20040602005306.GA73243@panzer.kdm.org> References: <40BD0982.9000708@cs.rutgers.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BD0982.9000708@cs.rutgers.edu> User-Agent: Mutt/1.4.1i cc: freebsd-scsi@freebsd.org Subject: Re: SCSI device question 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: Wed, 02 Jun 2004 00:53:17 -0000 On Tue, Jun 01, 2004 at 18:56:02 -0400, Aniruddha Bohra wrote: > Hello, > All SCSI devices cam/scsi/scsi_xx.c > do the following : > /* > * Install a global async callback. This callback will > * receive async callbacks like "new device found". > */ > csa.event_enable = AC_FOUND_DEVICE; > csa.callback = passasync; > > However, I did not find the code where the event is > triggered. Is it automatically done by the rescan code? > Is there a standard way to indicate to the peripheral drivers > that there is a new device on the bus? See sys/cam/cam_xpt.c, the function probedone() in the PROBE_TUR_FOR_NEGOTIATION case. (xpt_async(AC_FOUND_DEVICE, path, ccb)) It's triggered by a rescan or initial probe at boot. What are you trying to do? Ken -- Kenneth Merry ken@kdm.org