]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create devctl freeze/thaw.
authorWarner Losh <imp@FreeBSD.org>
Thu, 23 Aug 2018 05:05:47 +0000 (05:05 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 23 Aug 2018 05:05:47 +0000 (05:05 +0000)
commit5fa29797910346fc0c54829bd979856e83b9b7ea
tree461c4837323a9d9612e2ccd14735ea250d763699
parent67b60a1b7d46d959bdd4925944b149eebbfb593f
Create devctl freeze/thaw.

This adds it to devctl, libdevctl, defines the two IOCTLs and
implements the kernel bits. causes any new drivers that are added via
kldload to be deferred until a 'thaw' comes in. These do not stack: it
is an error to freeze while frozen, or thaw while thawed.

Differential Revision: https://reviews.freebsd.org/D16735
lib/libdevctl/devctl.3
lib/libdevctl/devctl.c
lib/libdevctl/devctl.h
sys/kern/subr_bus.c
sys/sys/bus.h
usr.sbin/devctl/devctl.c