|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On May 31, 2004, at 7:03 AM, John Dalgliesh wrote:_______________________________________________
The tricky bit is getting the pointer to the instance of your driver class
that is bound to the other function of the card. The way I did this was
traversing the IORegistry hierarchy. Here is the method I wrote to do that
... I used two instances of the same class because I am lazy (thus the
method returns a pointer to the same type as itself):
It may be easier and better to use features of IOService for the notification and finding of other services. So have one or both of your drivers register themselves when ready and the other listen for such notification or search for such registered services using an appropriate match dictionary.
You will want to look at IOService's registerSerivce, getMatchingServices, addNotification, and IONotifier.
-Shawn
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: what does IOPCIDevice class represent? PCI card or individual function on the PCI card. (From: John Dalgliesh <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
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.