Re: Passing parameters to a kext on load
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com That's exactly what I was wondering! Perfect! -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: Thanks! -Nathan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/guyton%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Does anyone have sample code which reads from the registry? (I'm pretty new at kernel development...) 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. This email sent to guyton@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Nathan Toone