Re: Network Kernel Extensions and unloading...
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 21 sept. 06, at 15:22, Jérome Foucher wrote: Hi all, I have a network kernel extension, based on KauthORama. Why should it be unloaded automatically if it's loaded manually? _______________________________________________ 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 think I'm missing something relly important here, but I can't find what. It seems to me that once loaded manually, the kext does not unload automatically if the user tries to shutdown his machine. The "stop" function of my kext is never called automatically if ones tries to shutdown or restart the computer. In "normal" use, it's not a big deal, as my application unloads the kext when exiting. But if the app crashes or is "killed -9", the kext is not unloaded and the user gets a nice kernel panic when shuting down his computer. Can anyone tell me what I'm missing here ? The KP could probably be prevented by, for instance, sending the PID of the process to the kext and checking in the kext for this PID before doing something "dangerous". Of course, this does not take into account the case where the PID is reused. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre