aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libusb/libusb20.3')
-rw-r--r--lib/libusb/libusb20.314
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libusb/libusb20.3 b/lib/libusb/libusb20.3
index 590ff3c03c1c..eef79bd4658d 100644
--- a/lib/libusb/libusb20.3
+++ b/lib/libusb/libusb20.3
@@ -1,5 +1,5 @@
.\"
-.\" Copyright (c) 2008 Hans Petter Selasky
+.\" Copyright (c) 2008-2019 Hans Petter Selasky
.\"
.\" All rights reserved.
.\"
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 3, 2013
+.Dd December 27, 2019
.Dt LIBUSB20 3
.Os
.Sh NAME
@@ -122,6 +122,8 @@ USB access library (libusb -lusb)
.Ft const char *
.Fn libusb20_dev_get_desc "struct libusb20_device *pdev"
.Ft int
+.Fn libusb20_dev_get_stats "struct libusb20_device *pdev" "struct libusb20_device_stats *pstats"
+.Ft int
.Fn libusb20_dev_close "struct libusb20_device *pdev"
.Ft int
.Fn libusb20_dev_detach_kernel_driver "struct libusb20_device *pdev" "uint8_t iface_index"
@@ -597,6 +599,14 @@ The format of the string is: "drivername<unit>: <description>"
.
.Pp
.
+.Fn libusb20_dev_get_stats
+retrieves the device statistics into the structure pointed to by the
+.Fa pstats
+argument.
+This function returns zero on success else a LIBUSB20_ERROR value is returned.
+.
+.Pp
+.
.Fn libusb20_dev_close
will close the given USB device.
.