Relative Content

Tag Archive for iospython-asynciodriverkit

How to create IOUSBHostPipe::CompleteAsyncIO callback

I’m creating a driver to communicate with a USB device. I try to make an asynchronous bulk data read by using AsyncIO. The problem I’m facing is that my CompleteAsyncIO doesn’t get called when the AsyncIO’s completionTimeoutMs parameter is set to 0.
When I change this AsyncIO timeout to a non zero value such as 500 ms, I notice CompleteAsyncIO gets called but I keep getting kIOReturnTimeout error. Increasing the timeout doesn’t help.