【问题标题】:How to enumerate and detect attachment/removal of thunderbolt device under Mac OS X?如何在 Mac OS X 下枚举和检测 Thunderbolt 设备的连接/移除?
【发布时间】:2014-09-12 07:02:29
【问题描述】:

我是 Mac OS X 的新手。 最近我有一个任务是开发一个软件,它可以

  1. 枚举 Thunderbolt 设备。
  2. 检测 Thunderbolt 设备的连接/移除。

我在 Apple 的 HP 中找到了一个用于 USB 的示例程序,名为“USBPrivateDataSample”。 但是,没有示例程序或关于 Thunderbolt 的任何提示。

我有以下问题:

  1. 是否需要开发设备驱动程序来完成我提到的任务?
  2. 如果问题 1. 是否。如何实现这个目标?通过 IOKit?
  3. Thunderbolt 设备如何在系统中显示? PCIe 设备?

非常感谢。

【问题讨论】:

    标签: xcode macos usb driver


    【解决方案1】:

    您可以通过监控 I/O 注册表中的 IOEthernetInterface 条目来监控 Thunderbolt 设备的连接/移除。过滤掉 Thunderbolt 网络相对容易(我不确定最好的选择是什么,但一个简单的选择是在父 IOEthernetController 的“IOModel”属性中查找“ThunderboltIP”)。 我已经实现了你想做的事情,还写了一段代码。链接在这里 Monitor changes on Thunderbolt port connection

    可能是这个,对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多