aboutsummaryrefslogtreecommitdiff
path: root/lib/libdevctl/devctl.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-08-23 05:05:47 +0000
committerWarner Losh <imp@FreeBSD.org>2018-08-23 05:05:47 +0000
commit5fa29797910346fc0c54829bd979856e83b9b7ea (patch)
tree461c4837323a9d9612e2ccd14735ea250d763699 /lib/libdevctl/devctl.c
parent67b60a1b7d46d959bdd4925944b149eebbfb593f (diff)
Notes
Diffstat (limited to 'lib/libdevctl/devctl.c')
-rw-r--r--lib/libdevctl/devctl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libdevctl/devctl.c b/lib/libdevctl/devctl.c
index 5013fb0b9d57..9c9ab7805672 100644
--- a/lib/libdevctl/devctl.c
+++ b/lib/libdevctl/devctl.c
@@ -145,3 +145,17 @@ devctl_delete(const char *device, bool force)
return (devctl_simple_request(DEV_DELETE, device, force ?
DEVF_FORCE_DELETE : 0));
}
+
+int
+devctl_freeze(void)
+{
+
+ return (devctl_simple_request(DEV_FREEZE, "", 0));
+}
+
+int
+devctl_thaw(void)
+{
+
+ return (devctl_simple_request(DEV_THAW, "", 0));
+}