Re: Using SystemConfiguration API inside KEXT
Re: Using SystemConfiguration API inside KEXT
- Subject: Re: Using SystemConfiguration API inside KEXT
- From: Eli Bach <email@hidden>
- Date: Tue, 11 May 2010 10:28:51 -0600
On May 11, 2010, at 9:11 AM, Andy Huang wrote:
> Hi,
>
> I am developing a NKE. Now I need to call SystemConfiguration framework API
> to find primary interface. When I tried to include
> <SystemConfiguration/SystemConfiguration.h>, I always get compiliation error
> saying not able to find the header file. Any ideas? TIA.
Andy,
SystemConfiguration is not available for kernel extensions directly. If you MUST do this, the common workaround is to have a separate user-space daemon that gets/sets whatever you need as a proxy for the kernel extension.
Of course, I am leaving the work of coordinating the kext and the daemon as an trivial exercise for the reader...
Same goes for your other question about the primary networking interface.
Eli
_______________________________________________
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