Get exclusive access to USB Device in Driver Kit

In the new Drive Kit I see that in IOService class there is no Probe() method to perform Active driver matching. Does this mean all the driver matching in Driver Kit is only Class matching and Passive matching?

Is Apple deprecating Active matching?


With the new Driver Kit, how my driver can claim exclusive access to the USB device without Mac knowing about the device?


This may break many useful features on many enterprise applications.

Replies

Looks like if we just want to open the USB devices in exclusive access mode and perform the device IO we may not need to write a Driver kit Driver. Instead Apple has introduced a new IOUSBHost framework from 10.15 Catalina. This can seize the device and interfaces to get exclusive access to USB devices .


Refer this blog here

https://tejusadiga.wordpress.com/2020/06/06/time-to-farewell-kernel-extensions-kext-on-macos/