Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOAudio Drivers & kextload/unload



Dan,

I tried your suggestion since I did have System Preferences and Daisy
(Apple's audio development utility) loaded at the time I was trying to
unload my driver, but still no go - there is nothing running except Terminal
and the Finder. I even relaunched the finder, but I still get the same error
message from kextunload.

I did discover that if I boot into the console (no OSX gui/finder/etc.) I am
able to load and unload my driver. So something in OSX is grabbing an
instance of my audio driver and holding on to it. I will keep plugging away
here until I can find it.

Thanks for the suggestion - I appreciate it,

Tim

> Subject: Re: IOAudio Drivers & kextload/unload
> To: Timothy McMahon <email@hidden>
> From: Dan Markarian <email@hidden>
> Date: Wed, 13 Feb 2002 15:18:53 -0500
>
>
> Hi Tim,
>
>> Other than logging out and unloading the driver (which does unload the
>> kext)
>> is there a way to force the driver to unload.
>
> It sounds like an application is holding a reference (io_object_t) to
> your IgniterAudioEngine instance. When you log out, the application
> goes away, and the reference disappears, which allows you to unload the
> extension cleanly. If not an application, some entity, in-kernel, or
> out-of-kernel.
>
>> I am considering creating a user interface client call that will kill
>> the
>> instance of the IgniterAudioEngine so that I can successfully unload it
>> with
>> kextunload, but was wondering if there was an easier way.
>
> The retain mechanism is there to protect us from dangling references.
> Circumventing it would be bad. Try to find the entity that is holding a
> retain on your object hostage, and the unload problem should go away.
>
> Dan
>
> On Wednesday, February 13, 2002, at 02:54 PM, Timothy McMahon wrote:
_______________________________________________
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.



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.