【问题标题】:MacOS kernel, .kext and devices in /devMacOS 内核、.kext 和 /dev 中的设备
【发布时间】:2013-06-16 05:49:24
【问题描述】:

我的 USB 3G 调制解调器出现问题,我进行了调试,但我无法确定在 /dev 中创建设备的 .kext 文件是什么

如何判断/dev中的设备文件(如/dev/usbdriver.001)与.kext的关系?

【问题讨论】:

    标签: macos kernel driver hardware kernel-extension


    【解决方案1】:

    要创建 /dev 条目,Kext 通常会使用 IOxxxBSDClient(例如 Serial、Media 等)。您可以使用 ioreg -l 并查找它,如下所示:

    ... (this would be the parent class) ...
    |   +-o IOSerialBSDClient  <class IOSerialBSDClient, id 0x100000385, registered, matched, active, busy 0 (0 ms), retain 5>
          | |       {
          | |         "IOClass" = "IOSerialBSDClient"
          | |         "CFBundleIdentifier" = "com.apple.iokit.IOSerialFamily"
          | |         "IOProviderClass" = "IOSerialStreamSync"
          | |         "IOTTYBaseName" = "Bluetooth-Serial-1"
          | |         "IOSerialBSDClientType" = "IORS232SerialStream"
          | |         "IOProbeScore" = 1000
          | |         "IOCalloutDevice" = "/dev/cu.Bluetooth-Serial-1"
          | |         "IODialinDevice" = "/dev/tty.Bluetooth-Serial-1"
          | |         "IOMatchCategory" = "IODefaultMatchCategory"
          | |         "IOTTYDevice" = "Bluetooth-Serial-1"
          | |         "IOResourceMatch" = "IOBSD"
          | |         "IOTTYSuffix" = ""
          | |       }
    

    这通常可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-01
      相关资源
      最近更新 更多