5

I am trying to write a driver kit extension for one of devices. I have not got Information on How to write a driverkit extension for mac os Catalina. The only Documentation which I got is

DriverKit Reference: https://developer.apple.com/documentation/driverkit?language=objc

& the WWDC Video: https://developer.apple.com/videos/play/wwdc2019/702/

Is there a Sample on how to Write a driver Kit extension and a System extension for installing it. Thanks in advance.

  • 3
    I haven't come across one yet, unfortunately. I'm working on one though. – pmdj Feb 26 '20 at 14:22
  • 1
    I found this https://github.com/knightsc/USBApp. This is the only example i could find. Have u referred the same or something else – Gunjan Sinha Feb 26 '20 at 14:59
  • 1
    Mostly just trial and error. I'm still in the process of porting my first driver to DriverKit, but I'm writing a guide based on my experiences. – pmdj Feb 26 '20 at 19:42
  • 1
    It would be helpful if u share the guide once you complete that. meanwhile, I will share my experiences if I succeed. – Gunjan Sinha Feb 27 '20 at 03:12
  • hi, I am able to compile this and changed the code and the plist to load my device. when I am trying to load that I am getting a dialog just like kext approval. but nothing happens after that. there are no os log , I can see that my device in ioreg but it only shows. it only shows !registered, !matched, active my os logs are not coming. How to proceed after that – Gunjan Sinha Mar 23 '20 at 12:28

2 Answers2

1

Apple finally added two examples of HIDDriverkit DEXTs and companion applications on Dec 16 2020.

John_K
  • 21
  • 2
-1

If you just want to open the device with exclusive access and perform Device IO, you may not need to write the Driver Kit driver. Instead, you can use IOUSBHost framework

Info on using the IOUSBHost framework

tejusadiga2004
  • 301
  • 1
  • 2
  • 8