• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using SystemConfiguration API inside KEXT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using SystemConfiguration API inside KEXT (From: Andy Huang <email@hidden>)

  • Prev by Date: Re: Make build with static library on 10.4
  • Next by Date: Re: Using SystemConfiguration API inside KEXT
  • Previous by thread: Re: Using SystemConfiguration API inside KEXT
  • Next by thread: How can I find primary network interface name in the NKE
  • Index(es):
    • Date
    • Thread