]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add comment about how the deferred callback for AC_FOUND_DEVICE we
authorWarner Losh <imp@FreeBSD.org>
Sat, 14 Mar 2020 02:36:45 +0000 (02:36 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sat, 14 Mar 2020 02:36:45 +0000 (02:36 +0000)
commit81490eda6034d22794fc7a5e759f4288a0d0ef14
treec1d6d8e415e38f1ebebd5ec6283902a66596474b
parentbec8faad55aa59c7a280ea785072d28f17a03b4a
Add comment about how the deferred callback for AC_FOUND_DEVICE we
generate for a race where a device goes away, we start to tear down
the periph state for the device, and then the device suddently
reappears. The key that makes it work is removal of periph from the
drv list before calling the deferred callback.

Hat tip to: mav@
sys/cam/cam_periph.c