diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2016-04-27 16:29:03 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2016-04-27 16:29:03 +0000 |
| commit | a907c6914c5879870b2597a63253cea0a5b7bdb8 (patch) | |
| tree | 57198594e0baf051edc63655c2d1254c1a033442 /lib/libdevctl/devctl.c | |
| parent | 167e63e3948c9ee374152b5ce2a270e805d22801 (diff) | |
Notes
Diffstat (limited to 'lib/libdevctl/devctl.c')
| -rw-r--r-- | lib/libdevctl/devctl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libdevctl/devctl.c b/lib/libdevctl/devctl.c index 7be431e9bf53..33c891b8e853 100644 --- a/lib/libdevctl/devctl.c +++ b/lib/libdevctl/devctl.c @@ -122,3 +122,10 @@ devctl_set_driver(const char *device, const char *driver, bool force) req.dr_flags |= DEVF_SET_DRIVER_DETACH; return (devctl_request(DEV_SET_DRIVER, &req)); } + +int +devctl_rescan(const char *device) +{ + + return (devctl_simple_request(DEV_RESCAN, device, 0)); +} |
