search for: usb_set_timeout

Displaying 1 result from an estimated 1 matches for "usb_set_timeout".

Did you mean: sg_set_timeout
2003 Jun 11
1
Palm m50x & the USB stack
...the HotSync endpoint for HotSyncs (endpoint 1 is listed as "Generic" in the endpoint descriptions). Relevant code is then: i = 0; /* 0 or USBD_SHORT_XFER_OK */ if (ioctl(endpoint_fd, USB_SET_SHORT_XFER, &i) < 0) { i = 50; if (ioctl(endpoint_fd, USB_SET_TIMEOUT, &i) < 0) { later, writes to the endpoint go fine, but a read() on the endpoint_fd returns immediately with ETIMEDOUT if the USB_TIMEOUT is non-0. I've started following this through the ugen code, but get totally lost in kernel intricacies. Mostly I need a good way to dump debug inf...