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.h | |
parent | 1d1a5c2b02674c66cc305c465e3ae86dc1e526a1 (diff) | |
download | src-4fbf8e1c2efb16431c174d7a77c23e700af1160b.tar.gz src-4fbf8e1c2efb16431c174d7a77c23e700af1160b.zip |
Implement devctl(8) command 'reset', using DEV_RESET /dev/devctl2 ioctl.
Reviewed by: imp (previous version), jhb (previous version)
Sponsored by: Mellanox Technologies
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D19646
Notes
Notes:
svn path=/head/; revision=345966
Diffstat (limited to 'lib/libdevctl/devctl.h')
-rw-r--r-- | lib/libdevctl/devctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevctl/devctl.h b/lib/libdevctl/devctl.h index e30576b14702..c6af8c480d47 100644 --- a/lib/libdevctl/devctl.h +++ b/lib/libdevctl/devctl.h @@ -43,6 +43,7 @@ int devctl_rescan(const char *device); int devctl_delete(const char *device, bool force); int devctl_freeze(void); int devctl_thaw(void); +int devctl_reset(const char *device, bool detach); __END_DECLS #endif /* !__DEVCTL_H__ */ |