Line 207:
Line 207:
| 26 (ioctl) || USBV0_IOCTL_DEVREMOVALHOOK || - || - || Both
| 26 (ioctl) || USBV0_IOCTL_DEVREMOVALHOOK || - || - || Both
|
|
−
Returns when the device is unplugged or reset, or on device close.
+
Returns when the device is unplugged or reset (in which cases the return value is IPC_SUCCESS / IPC_OK), or on device close (IPC_ENOENT).
Only one hook is allowed at the same time. Further ioctls to set up another hook before it is triggered result in IPC_EEXIST.
Only one hook is allowed at the same time. Further ioctls to set up another hook before it is triggered result in IPC_EEXIST.