4

在 Xcode 中使用 IOKit/DriverKit(在 WWDC 2019 中公开展示)将通用驱动程序写入 USB 连接的 MacOS 开发板的分步说明在哪里?

4

1 回答 1

3

The only documentation I'm aware of is:

  1. DriverKit reference
  2. WWDC 2019 Session 702

The DriverKit version of IOKit is intended to have a similar API to the in-kernel IOKit, so I guess they expect you to be familiar with that.

Note that in many cases when writing drivers for USB devices, you don't need to use either DriverKit or a kext, and instead can use the userspace IOUSB libraries directly. You only really need to use DriverKit or a kext if the kernel is the consumer of your driver. You haven't said what your driver will do, so I can't say which is best in your case. DriverKit is still extremely limited, so unless you want to write a HID or serial port driver, there are few reasons to choose it at the moment.

于 2019-09-07T15:18:59.983 回答