site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On May 16, 2006, at 1:12 AM, Jérome Foucher wrote: Hi folks ! I've started to use kauth for a future application. This is on purpose for this sample code. -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I've looked at KauthORama sample code, and have a few questions for which I didn't manage to find any answers in the archives. First of all, the KauthORama's kext does not load automatically at startup. Is it done on purpose, or is it a bug ? There's a lot of documentation on KEXT loading in this lists' archives, actually; it has to do with when and why KEXTs are loaded, what keeps them unloaded, whether an application should be used to load and unload them, etc.. The answer depends on your particular use and implementation: the problem you are trying to solve. In general, there's not a lot of documentation on this particular topic that has been sorted and sifted into one place, though. I suspect it's because if you force a KEXT to load each time the system boots, no matter what, then you can end up with a KEXT with a bug that can turn your system into a doorstop until you delete the KEXT or reinstall the system. If you have particular needs, you should look over this lists' archives carefully. More annoying, if I do not call "kextunload KauthORama" and shutdown my Mac, I get a kernel panic (each time, and this happened on all the machines I've tested). I checked the code a few times and could not find a bug in it that coulw cause a kernel panic. Please file a bug via Bugreporter <http://developer.apple.com/bugreporter/
. Include the stack traceback and other information from having set the debug flags, so that it's possible to tell where things are crashing. Als indicate if the code is the stock Apple sample code, or if you have modified it. If all of this is "normal", does this mean my user-land app has to load the kext itself and make sure it's unloaded before the computer shuts down ?
In general, this should not be necessary, so long as you maintain appropriate reference/use counts so that a KEXT does not get unloaded while it's in use. This is covered pretty well in the KEXT programming information on <http://developer.apple.com/>. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert