Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOServiceGetMatchingServices() doesn't find driver



If you use ioreg -w0. Does the device you are looking for have the "registered" flag?

Godfrey

On Jan 31, , at 14:12, Brian Jorgage wrote:

I am following the example tutorial in "Writing an I/O Kit Device
Driver".  I create a matching dictionary via IOServiceMatching
(myDriver).  When I verify the contents of the dictionary the (only)
key-value pair is "IOProviderClass:<myDriver>".

Shouldn't the key part of this be "IOClass" rather
than "IOProviderClass" ?  By using IOServiceMatching() it seems I am
locking myself in to using the "IOProviderClass" key.

If instead I use the call IOServiceMatching("AppleUSBComposite") to
find an Apple driver then IOServiceGetMatchingServices() still doesn't
find anything.  However I know there are instances of AppleUSBComposite
which I can verify via IORegistryExplorer.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden
References: 
 >IOServiceGetMatchingServices() doesn't find driver (From: "Brian Jorgage" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.