diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-05 19:32:26 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-04-05 19:32:26 +0000 |
| commit | 4fbf8e1c2efb16431c174d7a77c23e700af1160b (patch) | |
| tree | ba86d2ae70d50d38cd895227ea65600ee173de6a /lib/libdevctl/devctl.c | |
| parent | 1d1a5c2b02674c66cc305c465e3ae86dc1e526a1 (diff) | |
Notes
Diffstat (limited to 'lib/libdevctl/devctl.c')
| -rw-r--r-- | lib/libdevctl/devctl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libdevctl/devctl.c b/lib/libdevctl/devctl.c index 34ced3c5da65..528e3a3c407a 100644 --- a/lib/libdevctl/devctl.c +++ b/lib/libdevctl/devctl.c @@ -158,3 +158,11 @@ devctl_thaw(void) return (devctl_simple_request(DEV_THAW, "", 0)); } + +int +devctl_reset(const char *device, bool detach) +{ + + return (devctl_simple_request(DEV_RESET, device, detach ? + DEVF_RESET_DETACH : 0)); +} |
