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: Putting device into a given state on driver unload?



On Wednesday, February 6, 2002, at 07:00 PM, Andre John Mas wrote:

I have a device who's status light is driver controlled. When the driver
gets loaded the first device related task is to light up the LED. Now if
the driver is unloaded is there any way to get the light to be turned off
prior to unload. So far I tried putting the necessary code in the stop
method only to have the whole USB bus freeze on me and 'kextunload' to block.
The only way out of this scenario was a reboot and taking the offending
code out of the stop method.

IOKit gizmos get unloaded when their ref counts go to zero. You may be able to accelerate this with 'kextunload'. The 'stop/unload' function seems like a reasonable place to force the state of the device's LED, so there must be something going on in your code that's not quite right.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
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: 
 >Putting device into a given state on driver unload? (From: Andre John Mas <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.