Re: Passing parameters to a kext on load
Re: Passing parameters to a kext on load
- Subject: Re: Passing parameters to a kext on load
- From: Nathan Toone <email@hidden>
- Date: Fri, 25 May 2007 21:54:26 -0600
That's exactly what I was wondering! Perfect!
Does anyone have sample code which reads from the registry? (I'm
pretty new at kernel development...)
-Nathan
On May 25, 2007, at 9:15 PM, Jim Guyton wrote:
The usual way to pass info to a driver on load is via the dictionary
stored in the Info.plist file. The kext loader will copy the data
items to the registry and the driver can read it from there.
For debugging you can look at the registry with ioreg and/or the
developer tools applicatio IORegistryExplorer.
-- Jim Guyton
On May 25, 2007, at 8:04 PM, Nathan Toone wrote:
I have noticed that kernel modules (I'm specifically working on a
socket filter NKE) have parameters passed to their MODULE_START
and MODULE_STOP functions. a kmod_info_t * structure and a void *.
What do these parameters represent? Is there a way for me to
specify data that gets passed to my module on load? If so, how do
I set that up?
Pointers to documentation would be appreciated as well. I wasn't
able to find what I was looking for.
Thanks!
-Nathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev 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-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden