ioctl USBTMC_IOCTL_CANCEL_IO stops and kills all flying urbs of last USBTMC_IOCTL_READ and USBTMC_IOCTL_WRITE function calls. A subsequent call to USBTMC_IOCTL_READ or USBTMC_IOCTL_WRITE_RESULT returns -ECANCELED with information about current transferred data.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -97,6 +97,9 @@ struct usbtmc_message { · 96 unmodified lines | |||
| 97 | #define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21) | 97 | #define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21) |
| 98 | #define USBTMC488_IOCTL_TRIGGER _IO(USBTMC_IOC_NR, 22) | 98 | #define USBTMC488_IOCTL_TRIGGER _IO(USBTMC_IOC_NR, 22) |
| 99 | 99 | ||
| 100 | /* Cancel and cleanup asynchronous calls */ | ||
| 101 | #define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35) | ||
| 102 | |||
| 100 | /* Driver encoded usb488 capabilities */ | 103 | /* Driver encoded usb488 capabilities */ |
| 101 | #define USBTMC488_CAPABILITY_TRIGGER 1 | 104 | #define USBTMC488_CAPABILITY_TRIGGER 1 |
| 102 | #define USBTMC488_CAPABILITY_SIMPLE 2 | 105 | #define USBTMC488_CAPABILITY_SIMPLE 2 |