diff options
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 9f275e7..5013fb0 100644 --- a/lib/libdevctl/devctl.c +++ b/lib/libdevctl/devctl.c @@ -124,6 +124,14 @@ devctl_set_driver(const char *device, const char *driver, bool force) } int +devctl_clear_driver(const char *device, bool force) +{ + + return (devctl_simple_request(DEV_CLEAR_DRIVER, device, force ? + DEVF_CLEAR_DRIVER_DETACH : 0)); +} + +int devctl_rescan(const char *device) { |