Re: Kext user parameter without userland daemon
Re: Kext user parameter without userland daemon
- Subject: Re: Kext user parameter without userland daemon
- From: Nik Gervae <email@hidden>
- Date: Thu, 6 Jan 2011 13:46:11 -0800
Yeah, if you're trying to get info before the root filesystem is even mounted, then the only channels of data to a kext are via NVRAM, the kext's own I/O Kit Pesonalities (the whole plist is not made available), and the kext's executable - but none of them is really viable.
NVRAM is not a safe place to store settings of course, and even so its capacity is tiny. And as you noted, modifying a kext bundle's contents is really not the way to go about storing configuration information. While technically possible, it's definitely not an officially supported technique.
Is there any way your kext can operate in a restricted mode until the daemon launches, or will that prevent startup? In other words: what are you actually trying to do? ;-)
Nik Gervae
Kext Management Engineer
Apple, Inc.
On 06 Jan, 2011, at 13:31 , Quinn The Eskimo! wrote:
On 6 Jan 2011, at 18:42, Antoine Missout wrote:
>
>> We use OSBundleRequired Root to be loaded before launchd if that is your question.
>
> Well, by specified OSBundleRequired "Root" you're telling the system that you have to be started in order to mount the root file system. This guarantees that you won't be able to read the file system to get your configuration parameters. At this point you'll have to get your configuration parameters via pre-boot mechanisms, which is kinda ugly (and outside my area of expertise).
>
> 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
_______________________________________________
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