]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add comment about how the deferred callback for AC_FOUND_DEVICE we
authorimp <imp@FreeBSD.org>
Sat, 14 Mar 2020 02:36:45 +0000 (02:36 +0000)
committerimp <imp@FreeBSD.org>
Sat, 14 Mar 2020 02:36:45 +0000 (02:36 +0000)
commit4c48a26a9e2981398a0412c02c3efb90c5107f8d
treec1d6d8e415e38f1ebebd5ec6283902a66596474b
parent61f03e353632e7fa4d99ffd51bb086f99aeecb74
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