Skip to contentSkip to conversation

usb: usbtmc: Add ioctl for vendor specific write

PATCH New Greg Kroah-Hartman 1 participant 1 message Sep 20, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH v6 2/22 usb: usbtmc: Add ioctl for vendor specific write

Review

Quoted 10 lines · Guido Kiener
(quoted diff) +10 -0
+/*
+ * usbtmc_message->flags:
+ */
+#define USBTMC_FLAG_ASYNC		0x0001
+#define USBTMC_FLAG_APPEND		0x0002
+
+struct usbtmc_message {
+	__u32 transfer_size; /* size of bytes to transfer */
+	__u32 transferred; /* size of received/written bytes */
+	__u32 flags; /* bit 0: 0 = synchronous; 1 = asynchronous */

endian? Native or are these properly transferred to the hardware in the correct way?

thanks,

greg k-h