From 5fa29797910346fc0c54829bd979856e83b9b7ea Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 23 Aug 2018 05:05:47 +0000 Subject: 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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libdevctl/devctl.h') diff --git a/lib/libdevctl/devctl.h b/lib/libdevctl/devctl.h index d49199ad0b593..11a21753809dd 100644 --- a/lib/libdevctl/devctl.h +++ b/lib/libdevctl/devctl.h @@ -41,5 +41,7 @@ int devctl_set_driver(const char *device, const char *driver, bool force); int devctl_clear_driver(const char *device, bool force); int devctl_rescan(const char *device); int devctl_delete(const char *device, bool force); +int devctl_freeze(void); +int devctl_thaw(void); #endif /* !__DEVCTL_H__ */ -- cgit v1.3