0

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

如何确定 /dev 中的设备文件(如 /dev/usbdriver.001)和 .kext 之间的关系?

4

1 回答 1

0

要创建 /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" = ""
      | |       }

这通常可以解决问题。

于 2013-08-16T03:18:39.503 回答