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

Re: variable config parameters to driver.




On Jan 13, 2005, at 9:45 AM, Parav Pandit wrote:

(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?

File IO in the kernel is not supported. You can fire down a buffer from user land to your driver using various methods (depending on type of driver, etc.), most likely a user client for your driver would be the way to go. This buffer could in theory contain the contents of your configuration file that your driver would then parse.


FYI Info.plists are not bounded in size other then by resources to be of my knowledge but you don't have to use that format specifically if you don't want to.

You may want to review the following and related documentaion, also sample code should exists on Apple's site...

<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/ AccessingHardware/AH_Device_Access_IOKit/chapter_3_section_2.html>

-Shawn

_______________________________________________
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


References: 
 >variable config parameters to driver. (From: "Parav Pandit" <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.