SCSI device question
Aniruddha Bohra
bohra at cs.rutgers.edu
Wed Jun 2 05:17:25 PDT 2004
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
More information about the freebsd-scsi
mailing list