History

usb: usbtmc: Add ioctl USBTMC_IOCTL_CLEANUP_IO

The ioctl USBTMC_IOCTL_CLEANUP_IO kills all submitted urbs to OUT and IN bulk, and clears all received data from IN bulk. Internal transfer counters and error states are reset. An application should use this ioctl after an asnychronous transfer was canceled and/or error handling has finished.

Guido Kiener committed 8 years ago

Commit 987b8191 parent 46ecc9d2 files · +20 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/usb/tmc.h+1−0
@@ -99,6 +99,7 @@ struct usbtmc_message { · 98 unmodified lines
9999
100100 /* Cancel and cleanup asynchronous calls */
101101 #define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35)
102+#define USBTMC_IOCTL_CLEANUP_IO _IO(USBTMC_IOC_NR, 36)
102103
103104 /* Driver encoded usb488 capabilities */
104105 #define USBTMC488_CAPABILITY_TRIGGER 1