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



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:

> Hello,
>
> I would like to take advantage of the dynamic loading/unloading
> capabilities
> of OS X, but am getting the following error message when trying to
> unload my
> audio driver (which is based off of the SamplePCIAudioDriver example):
>
> Mach_kernel: Can't unload IgniterAudioDriver due to -
> IgniterAudioDriver:
> IgniterAudioEngine has 1 instance(s)
>
> Other than logging out and unloading the driver (which does unload the
> kext)
> is there a way to force the driver to unload.
>
> 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.
>
> Thanks,
>
> Tim
> _______________________________________________
> 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: 
 >IOAudio Drivers & kextload/unload (From: Timothy McMahon <email@hidden>)



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.