Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2004 18:53:06 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Aniruddha Bohra <bohra@cs.rutgers.edu>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: SCSI device question
Message-ID:  <20040602005306.GA73243@panzer.kdm.org>
In-Reply-To: <40BD0982.9000708@cs.rutgers.edu>
References:  <40BD0982.9000708@cs.rutgers.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040602005306.GA73243>