Handling timeout for IO request.

Does UMDF framework provide any mechanism for handling timeouts of IO requests?. Or it need to be handled using our own mechanism based in WaitForSingleObject API?

You can set a timeout with WDF_REQUEST_SEND_OPTIONS_SET_TIMEOUT.

Thanks! I have just gone through the mentioned option. Can this be used to provide timeout functionality for the driver owned IO read request?

Yes. You could… ah… try it in less time than it takes to ask the question, don’t you think.

Peter

1 Like

THINK about what you’re asking. The layers below you have no clue whether the request came from you or from above you. It’s just an IRP.

1 Like

Ok Thanks!