diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2016-04-27 16:33:17 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2016-04-27 16:33:17 +0000 |
| commit | 88eb5c506d00e446dcfeb0f84b36d5132a8d9f6b (patch) | |
| tree | 9d890003db3954532ce3e8f39ed0184a8e9983dc /lib/libdevctl/devctl.c | |
| parent | 3d0338a09278a0cc38785321f102de9775c57ed3 (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 33c891b8e853..9f275e786252 100644 --- a/lib/libdevctl/devctl.c +++ b/lib/libdevctl/devctl.c @@ -129,3 +129,11 @@ devctl_rescan(const char *device) return (devctl_simple_request(DEV_RESCAN, device, 0)); } + +int +devctl_delete(const char *device, bool force) +{ + + return (devctl_simple_request(DEV_DELETE, device, force ? + DEVF_FORCE_DELETE : 0)); +} |
