]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new device flag: DF_ATTACHED_ONCE
authorWarner Losh <imp@FreeBSD.org>
Thu, 23 Aug 2018 05:06:16 +0000 (05:06 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 23 Aug 2018 05:06:16 +0000 (05:06 +0000)
commitd36967bd2b32e8a790830e2fa45163729c7e8b00
treedade753d78020f21048523a23de247fbe08aeaf3
parent84725a5fd073b115f45c507f3fef62a522bce466
Add a new device flag: DF_ATTACHED_ONCE

This flag is set once the device has been successfully attached. When
set, it inhibits devmatch from trying to match the device. This in
turn allows kldunload to work as expected. Prior to the change, the
driver would immediately reload because devmatch had no notion that
the driver had once been attached, and therefore shouldn't participate
in further matching.

Differential Revision: https://reviews.freebsd.org/D16735
sbin/devmatch/devmatch.c
sys/kern/subr_bus.c
sys/sys/bus.h