| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
So, I took the example of deferred close from the various ioket drivers:_______________________________________________
didterminate()
{
if( something_still_running)
set_flag;
else
interface->close();
return( super::didterminate();
}
other_func()
{
if( all_done && flag_set )
{
interface_close();
}
}
Well, that's just fine as far as it goes. But my real problem is that I
want to defer not just closing my provider, but I want to defer my own
stop() and free() getting called until after my stuff is done. The above
sample does not do this. So, how do I do this? Do I return false from
didTerminate and/or not call super:didterminate()? Do I set the "defer"
parameter? What do I do after the deferment? Do I call
super:didterminate()? Do I call my own stop()? I need a specific sequence
to not only safely defer but to get things cleanly closed. I see no
relevant documentation or sample of any of this.
Thanks.
At 09:56 AM 8/2/2002, Scott Taggart wrote:
>Hi,
>
>I have a kext that I want to implement deferred termination in. I want to
>defer termination until an i/o request completes on my device. Reading
>the docs on terminate (requestTerminate, terminate, willTerminate,
>didTerminate) is a bit mind-numbing and to say the least terse. Can
>someone point me to either sample code or pseudo-code of the functions
>from the above list and how to do this? I assume I return false from one
>of these and then later have to call something else to get the termination
>kicked off again.
>
>Thanks,
>
>Scott
>_______________________________________________
>darwin-drivers mailing list | email@hidden
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/darwin-drivers
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: How to do deferred terminate in kext? - Not quite still need help (From: Scott Taggart <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.