Re: Getting info about status of a kernel extension
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Apr 11, 2005, at 03:17, Martin Bestmann wrote: I like to get the info (via an API) if a specific kernel extension is loaded or not loaded. In case if it is not loaded why it wasn't loaded (e.g. wrong dependencies or authentication errors because of incorrect permission). I like to write a quick user client application to better troubleshoot why a kernel extension wouldn't load at the customer. There aren't supported APIs available for doing what you want. Probably the best approach to find out if a kext is loaded is the exect "kextstat" and search the output for your CFBundleIdentifier. As for figuring out why it wouldn't load, you can try loading it with "-v" ... pick a level that provides the amount of logging that provides you what you need. Unfortunately, kextload does not return specific error codes for different failures (there is already an enhancement request filed for this) so looking at the output is the only way to determine what went wrong. - Dean This email sent to site_archiver@lists.apple.com
participants (1)
-
Dean Reece