• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parameter passing during starting of the driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Parameter passing during starting of the driver (From: "Yogesh Pahilwan" <email@hidden>)

  • Prev by Date: Parameter passing during starting of the driver
  • Next by Date: Re: Parameter passing during starting of the driver
  • Previous by thread: Parameter passing during starting of the driver
  • Next by thread: Re: Parameter passing during starting of the driver
  • Index(es):
    • Date
    • Thread