Re: Parameters to KEXT at loading time???
Re: Parameters to KEXT at loading time???
- Subject: Re: Parameters to KEXT at loading time???
- From: Quinn <email@hidden>
- Date: Mon, 30 Jul 2007 10:13:27 +0100
At 14:47 -0700 27/7/07, Kevin Elliott wrote:
Clearly modifying other peoples plists lies somewhere between stupid
and insane depending on use case, but if your talking about your own
driver this didn't seem particularly bad. Is their some gotcha I
should be aware of with this, or were you speaking more generically?
The problem is configuration management.
o My version 1.2.7 of your driver may not be the same as your version
1.2.7 of the driver. How do you explain that to a support rep? It's
not as simple as "go here and trash this preference file".
o Code should be read-only (to support things like code signing).
This model mixes the read-only code (the majority of your Info.plist)
with some read/write data (the tunable parameters)
At 10:10 -0400 27/7/07, Andrew Gallatin wrote:
You guys really need something like the ddi_prop_get_{type}() from Solaris,
or TUNABLE_{type}_FETCH() from FreeBSD. I opened an enhancement request
2.5 years ago (3954845) which has never even benn looked at, AFAICT.
Rest assured that this is a common request and it has been looked at
by the relevant folks in Apple kernel engineering. There are, IMHO,
good reasons /not/ to implement this feature; or, at least, to think
very carefully about its implications before we implement it.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden