Re: Is there any dummy provider
Re: Is there any dummy provider
- Subject: Re: Is there any dummy provider
- From: Quinn <email@hidden>
- Date: Tue, 20 Jun 2006 17:01:55 +0100
At 3:31 -0700 19/6/06, Pavan Chebbi wrote:
Is there a class that I can use as provider when I am writing a
virtual driver ?
A virtual driver should match using IOResources. Check out the
documentation for this on the developer web site.
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/WritingDeviceDriver/IOService/chapter_4_section_2.html>
<http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptIOKit/hello_iokit.html>
You can see an example of this in the IOKitWithLibrary sample.
<http://developer.apple.com/samplecode/IOKitWithLibrary/index.html>
The "IOProviderClass" property of the KEXT is set to "IOResources"
and the "IOResourceMatch" property to "IOKit".
IMPORTANT
If you use this technique, make sure that you set the
"IOMatchCategory" property to something unique (like the
bundle identifier of your driver). If two KEXTs use the
same non-unique identifier, the second one won't load.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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