IOKit miscellaneous
to use IONameMatch in a driver to match on a nub, you must set the name with nub->setName("foo"), not nub->setProperty("name","foo"). this has the useful side-effect of presenting that name in IORegistryExplorer, so you don't get stuck with long class names as identifiers. setLocation("locn") will also add an @locn to your name in the registry explorer, which is handy for multiple nubs with the same name. I'm not sure if I can use the location as part of the matching process yet.
0 Comments:
Post a Comment
<< Home