usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ
PATCH 7/12 usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ
Am Montag, den 28.05.2018, 10:59 +0000 schrieb guido@kiener- muenchen.de:
Quoted 8 lines
Quoted 2 lines
No, the problem is that you will underflow
io->mutexDon't worry. The function
usbtmc488_ioctl_wait_srqis called byusbtmc_ioctlwhich already locks the mutex. See
https://elixir.bootlin.com/linux/v4.17-rc7/source/drivers/usb/class/usbtmc.c#L1189
So the mutex is just unlocked here to allow other threads to still communicate with the device.
Hi,
thanks I had overlooked that.
Regards
Oliver
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html