Re: Getting prefs to my driver (was: reading a file from kernel)
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.