Date: Wed, 02 Jun 2004 08:13:55 -0400 From: Aniruddha Bohra <bohra@cs.rutgers.edu> To: "Kenneth D. Merry" <ken@kdm.org> Cc: freebsd-scsi@freebsd.org Subject: Re: SCSI device question Message-ID: <40BDC483.9040502@cs.rutgers.edu> In-Reply-To: <20040602005306.GA73243@panzer.kdm.org> References: <40BD0982.9000708@cs.rutgers.edu> <20040602005306.GA73243@panzer.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Kenneth D. Merry wrote: > 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. Thanks a lot. > > What are you trying to do? I am just trying to understand the code. Thanks Aniruddha
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40BDC483.9040502>