Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
variable config parameters to driver.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variable config parameters to driver.



Hi,

I want to pass config parameters to driver during loading time.
Important : Number of parameters are variable.
Currently on Linux, what we do is, we pass them via a config file.
Driver reads the config file during loading.
This config file is written by an Application.
Typical sequence of passing parameters to driver is:
Driver is loaded with default param.
Now Application starts, writes the config file.
Driver is unloaded and loaded.
Driver read the config file during loading and works accordingly.
One way to do on MAC OS is: Write them in Info.plist.
But what is the max size via Info.plist? On linux max size is 4K via config file.


Can I use the same mechanism for MAC OS? that is have a seperate config
file, not the Info.plist.
Because I want to reuse
(1) my appliation code, that writes the config file.
(2) driver's parser that reads the config file.


How can I read/write files in IOKit driver? Is it the right way do?
What are the other ways to pass these variable config parameters to driver? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.