Re: Parameter passing during starting of the driver
Re: Parameter passing during starting of the driver
- Subject: Re: Parameter passing during starting of the driver
- From: Michael Smith <email@hidden>
- Date: Thu, 22 Feb 2007 01:17:28 -0800
On Feb 21, 2007, at 11:04 PM, Yogesh Pahilwan wrote: I have filter scheme driver and it needs some user inputs. The user inputs needs to be available prior to loading of my driver say in (init () routine of my driver).
Your driver is loaded before your ::init() method is run. So that I can get the values of these key in my driver’s start () routine. I am thinking of setting key/value pair in the IORegistry prior to filter scheme driver starting. But how can I do this?
The OSDictionary passed to your ::init() routine includes the properties from the matched personality in your Info.plist file. If these properties are constants then this is the simplest way to provide them.
If you are saying that you want per-instance parameters and that you actually want them supplied by the user, then you will need a much more complex solution.
= Mike
|
_______________________________________________
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