Line 116:
Line 116:
== /dev/usb/oh0/%x/%x ==
== /dev/usb/oh0/%x/%x ==
These devices represent an individual USB device, based on its vendor ID and product ID (in hexadecimal format without leading zeroes). It is unclear how devices with the same VID/PID can be used at the same time.
These devices represent an individual USB device, based on its vendor ID and product ID (in hexadecimal format without leading zeroes). It is unclear how devices with the same VID/PID can be used at the same time.
+
+
Only one device handle can be opened at the same time. Attempting to open more than one results in IPC_EEXIST (-2).
{| class="wikitable"
{| class="wikitable"
Line 169:
Line 171:
| 26 (ioctl) || USBV0_IOCTL_DEVREMOVALHOOK || - || - || Both
| 26 (ioctl) || USBV0_IOCTL_DEVREMOVALHOOK || - || - || Both
|
|
−
Returns when the device is unplugged.
+
Returns when the device is unplugged or reset, or on device close.
+
Only one hook is allowed at the same time. Further ioctls to set up another hook before it is triggered result in IPC_EEXIST.
|-
|-