usbdPipeIOWait
Purpose
Waits until previous I/O request is processed.
Syntax
#include <usbdi.h>
USBstatus usbdPipeIOWait(handle, irp, to)
USBhandle handle;
PIRP irp;
int to;
Parameter
Item | Description |
---|---|
handle | Handle of open USB logical device that is returned by the USBD_OPEN_DEVICE fp_ioctl. |
irp | Pointer to IRP structure used in the usbdPipeIO request. |
to | Maximum time to wait for I/O completion that is specified in milliseconds. |
Description
This function is called both by the client driver and the USB system driver when the call waits for an outstanding I/O. The caller sleeps until the associated I/O request is complete or until the timeout is complete. If the timeout is complete, the outstanding I/O request is stopped and the request is completed with the return status of the USBD_TIMEOUT to the caller.
Execution Environment
This function might be called from the process environment only.
Return Values
Value | Description |
---|---|
USBD_SUCCESS | Success |
All others | Failure |