Re: Parameters to KEXT at loading time???
Re: Parameters to KEXT at loading time???
- Subject: Re: Parameters to KEXT at loading time???
- From: Andrew Gallatin <email@hidden>
- Date: Fri, 27 Jul 2007 10:10:15 -0400 (EDT)
Quinn writes:
> For a generic KEXT, this trick won't work. However, as Mike said,
> generic KEXTs are never loaded directly by the system. Rather, you
> have to create some mechanism to load them. For example, if you look
> at my MFSLives VFS plug-in, I load the VFS plug-in KEXT from my mount
> tool. As you're already creating this mechanism, it's easy to add
> code to pass whatever parameters you want to the KEXT via whatever
> mechanism is appropriate. For example, for a VFS plug-in KEXT, it's
> common to pass these parameters as part of your mount arguments.
> However, for a networking KEXT, you might choose to use a control
> socket.
>
> Alternatively, just register a sysctl handler and then you can tweak
> these parameters via the sysctl API (and an advanced user can do the
> same using the sysctl tool).
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.
PE_parse_boot_arg() works, but its a pain to have to reboot after
updating the boot args in nvram..
Drew
_______________________________________________
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