OSDN Git Service

usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ
authorGuido Kiener <guido@kiener-muenchen.de>
Wed, 12 Sep 2018 08:50:58 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:04:02 +0000 (13:04 +0200)
commit739240a9f6ac4d4c841081029874b3521744e490
tree55980e0ab870ede7b3b735f897684266b66e6f76
parentb19bbdc5f45171295defbfa2a1846a2776b942bc
usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ

Wait until an SRQ (service request) is received on the interrupt pipe
or until the given period of time is expired. In contrast to the
poll() function this ioctl does not return when other (a)synchronous
I/O operations fail with EPOLLERR.

Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c
include/uapi/linux/usb/tmc.h