The example code from the last WWDC doesn't compile in the latest xcode, and the scaffold provided when creating a 'DriverKit Driver' in xcode is broken as well.
xcode provides:
#include "MyDriver.h"
kern_return_t
IMPL(MyDriver, Start)
{
kern_return_t ret;
ret = Start(provider, SUPERDISPATCH);
os_log(OS_LOG_DEFAULT, "Hello World");
return ret;
}
The include needs to be changed from '.h' to '.iig', but then the IMPL() macro generates an unknown type 'MyDriver_Start_Args' and 'provider' is an undeclared identifier.
I haven't found any way to even get this to compile in xcode 11.3.1
Without any working examples or proper documentation I hope kexts aren't getting phased out too soon.
Anyone else have any luck with this?