History

usb: usbtmc: Add ioctl USBTMC_IOCTL_CANCEL_IO

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.

Guido Kiener committed 8 years ago

Commit 46ecc9d1 parent bb997942 files · +7 −0Browse files

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

Unified · Split

include/uapi/linux/usb/tmc.h+3−0
@@ -97,6 +97,9 @@ struct usbtmc_message { · 96 unmodified lines
9797 #define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21)
9898 #define USBTMC488_IOCTL_TRIGGER _IO(USBTMC_IOC_NR, 22)
9999
100+/* Cancel and cleanup asynchronous calls */
101+#define USBTMC_IOCTL_CANCEL_IO _IO(USBTMC_IOC_NR, 35)
102+
100103 /* Driver encoded usb488 capabilities */
101104 #define USBTMC488_CAPABILITY_TRIGGER 1
102105 #define USBTMC488_CAPABILITY_SIMPLE 2

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t