Re: Getting info about status of a kernel extension
Re: Getting info about status of a kernel extension
- Subject: Re: Getting info about status of a kernel extension
- From: Dean Reece <email@hidden>
- Date: Mon, 11 Apr 2005 09:35:26 -0700
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden