Re: Threading in IOKit (was: Protection Questions)
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:nano@apple.com USB Technology Team work: 719.534.9387 Apple Computer, Inc. fax: 719.532.0981 _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Fernando Urbina