• 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: Is there any dummy provider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Is there any dummy provider
      • From: Quinn <email@hidden>
References: 
 >Is there any dummy provider (From: Pavan Chebbi <email@hidden>)

  • Prev by Date: Re: hardware/ software problem on boot
  • Next by Date: Mouse click interrupt
  • Previous by thread: Is there any dummy provider
  • Next by thread: Re: Is there any dummy provider
  • Index(es):
    • Date
    • Thread