summaryrefslogtreecommitdiff
path: root/libusb/os/linux_usbfs.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2015-09-17 22:27:22 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2015-09-20 14:52:49 -0700
commite9a52c03ae3fecb51b882a807c427f4b4dfa2d1e (patch)
treed8daf2f08166e8265939ecbdba0f2d1891c90560 /libusb/os/linux_usbfs.h
parent3dbf0a9c5e772ffc8bbab499bcc0a81f5ccd96e3 (diff)
downloadlibusb-e9a52c03ae3fecb51b882a807c427f4b4dfa2d1e.tar.gz
linux_usbfs: Add support for kernels that can reap after disconnect
For kernels that support the REAP_AFTER_DISCONNECT capability, it is no longer necessary to use the nasty workaround that is the usbi_handle_disconnect() function. All transfers can be properly reaped as one would expect and will have an appropriate URB status. Note that moving usbi_handle_disconnect() after the hotplug section is fine because the hotplug disconnect message simply gets added to the hotplug_msgs list to be processed the next time handle_events() is called. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/linux_usbfs.h')
-rw-r--r--libusb/os/linux_usbfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libusb/os/linux_usbfs.h b/libusb/os/linux_usbfs.h
index 43fe11b..7f397f9 100644
--- a/libusb/os/linux_usbfs.h
+++ b/libusb/os/linux_usbfs.h
@@ -125,6 +125,7 @@ struct usbfs_hub_portinfo {
#define USBFS_CAP_BULK_CONTINUATION 0x02
#define USBFS_CAP_NO_PACKET_SIZE_LIM 0x04
#define USBFS_CAP_BULK_SCATTER_GATHER 0x08
+#define USBFS_CAP_REAP_AFTER_DISCONNECT 0x10
#define USBFS_DISCONNECT_CLAIM_IF_DRIVER 0x01
#define USBFS_DISCONNECT_CLAIM_EXCEPT_DRIVER 0x02