| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have both willTerminate() and message() functions in my USB driver. I was
under the impression that willTerminate() and didTerminate() were the new
(correct) way to trap device termination. The "old" way was to look for
kIOMessageServiceIsTerminated messages passed to the message() routine. I
was told that the kIOMessageServiceIsTerminated message was deprecated.
If I handle the termination event in willTerminate() then my stop() routine
never gets called. If I #ifdef out the willTerminate() routine and move the
cleanup code into message(kIOMessageServiceIsTerminated) - the exact same
cleanup takes place but in this case my stop() routine does get called. My
stop() routine does some additional cleanup which is required to allow the
driver to be unloaded.
Any idea why willTerminate() is preventing stop() from being called ?
Alec Carlson
-----------------------------------------------------------------------
Time is Short, and the Water Rises
-----------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.