|[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.
darwin-drivers mailing list | email@hidden
Do not post admin requests to the list. They will be ignored.
|>Re: what does IOPCIDevice class represent? PCI card or individual function on the PCI card. (From: John Dalgliesh <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.