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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -99,6 +99,7 @@ struct usbtmc_message { · 98 unmodified lines | ||
| 99 | 99 | |
| 100 | 100 | /* Cancel and cleanup asynchronous calls */ |
| 101 | 101 | #define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35) |
| 102 | +#define USBTMC_IOCTL_CLEANUP_IO _IO(USBTMC_IOC_NR, 36) | |
| 102 | 103 | |
| 103 | 104 | /* Driver encoded usb488 capabilities */ |
| 104 | 105 | #define USBTMC488_CAPABILITY_TRIGGER 1 |