SCSI device question

Kenneth D. Merry ken at kdm.org
Tue Jun 1 17:53:17 PDT 2004


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 at kdm.org


More information about the freebsd-scsi mailing list