• 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: Getting prefs to my driver (was: reading a file from kernel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting prefs to my driver (was: reading a file from kernel)


  • Subject: Re: Getting prefs to my driver (was: reading a file from kernel)
  • From: Dean Reece <email@hidden>
  • Date: Tue, 7 May 2002 09:59:11 -0700

On the darwin-dev list I read a post from Dean Reece where he said they were
working on a feature that allowed "per-kext preferences to be stored", any
news on that?

No news on that yet. It is now at the top of our to-do list, now that we've gotten the KEXT tools suite up to where we want it.

On Tuesday, May 7, 2002, at 01:28 AM, Frode Isaksen wrote:
I have exactly the same problem with the PCI and USB drivers for an adsl
modem. I need to know the modulation (G.dmt,ANSI,G.lite) when starting up.
Launching a tool with KUNCExecute fails during boot, and after boot I am not
called any more, since the driver is an Ethernet controller. I chose to use
the non-recommended solution to modify the driver Info.plist.

To be more specific, on-the-fly changes to your Info.plist is unsupported. We've steered people away from this for a very good reason - it won't work on future releases. More complex caching, and features like driver signing will not permit any changes within the kext bundle.

This mechanism is OK for use during development as a quick way to tweak driver settings. It is also OK for installation-time settings: Install the driver to /tmp; ask user questions; tweak plist accordingly; make plist read-only; move driver to /S/L/E. It is NOT OK for on-the-fly changes.

Of course I will change my driver when a better solution exists.
What I really would like to have is the CFPreferences API for KEXT's.

This is pretty much what we are working on.
- Dean
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting prefs to my driver (was: reading a file from kernel)
      • From: Sean McBride <email@hidden>
References: 
 >Re: Getting prefs to my driver (was: reading a file from kernel) (From: Frode Isaksen <email@hidden>)

  • Prev by Date: Re: Getting prefs to my driver (was: reading a file from kernel)
  • Next by Date: RE: Getting prefs to my driver (was: reading a file from kernel)
  • Previous by thread: Re: Getting prefs to my driver (was: reading a file from kernel)
  • Next by thread: Re: Getting prefs to my driver (was: reading a file from kernel)
  • Index(es):
    • Date
    • Thread