【问题标题】:IORegistryEntry::fromPath() failIORegistryEntry::fromPath() 失败
【发布时间】:2009-11-25 15:47:23
【问题描述】:

我的 IOKit kext 在较旧的 iMac 上无法在 IORegistry 的 DeviceTree 平面中定位 /options 路径。有没有其他人遇到过这个或知道它为什么会失败? thx->adv

  IORegistryEntry* regEntry = IORegistryEntry::fromPath("/options", gIODTPlane);
  if(NULL == regEntry)
  {
    regEntry = IORegistryEntry::fromPath("IODeviceTree:/options");  
    if(NULL == regEntry)
    {
      DEBUG_LOG("getIORegOptionsEntry: FAILURE TO LOCATE: IODeviceTree:/options\n");
    }
  }

【问题讨论】:

    标签: macos osx-snow-leopard iokit


    【解决方案1】:

    用于创建 IORegistryEntry 的路径无效,因为 per the API:它应该以“:”开头。 I/O平面不应包含在路径中,而应作为第二个参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-15
      • 1970-01-01
      • 1970-01-01
      • 2014-10-20
      • 2016-01-22
      • 1970-01-01
      • 2013-02-24
      相关资源
      最近更新 更多