Re: Threading in IOKit (was: Protection Questions)
Re: Threading in IOKit (was: Protection Questions)
- Subject: Re: Threading in IOKit (was: Protection Questions)
- From: Fernando Urbina <email@hidden>
- Date: Mon, 03 Jun 2002 18:16:27 -0600
Scott Taggart said:
>
How do you "defer" the shutdown of the driver when you get a "terminate()"
>
call to wait for the timer completion? Are there any samples of how to do
>
this?
Look at the IOUSBFamily and any of the drivers (check IOUSBHIDDriver, for
example). Look at the willTerminate() routine and the
Increment/DecrementOutstandingIO().
You can essentially defer the closing of your provider until your timeout
expires. That will prevent your driver from being torn down all the way.
--
Fernando Urbina
mailto:email@hidden
USB Technology Team work: 719.534.9387
Apple Computer, Inc. fax: 719.532.0981
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.