在 Xcode 中使用 IOKit/DriverKit(在 WWDC 2019 中公开展示)将通用驱动程序写入 USB 连接的 MacOS 开发板的分步说明在哪里?
1 回答
The only documentation I'm aware of is:
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.