I know how to send data to DriverKit and get back some values, that is application calling IOConnectCallStructMethod() and driver fill the OSData in structureOutput from application.
In my Application it is using IOConnectCallAsyncScalarMethod() and the kext using sendAsyncResult64() to let the app know events coming in. However the method sendAsyncResult64() is not available in DriverKit.
I saw AsyncCompletion looks like solution but no idea to implement it. Anyone know how to do? Appreciate if any suggestion!
IOConnectCallStructMethodand prepares a buffer for driver, and in my driver useIOMemoryDescriptor::CreateMappingto fill related data let app get it. But I don't know how to useIOMemoryDescriptor::CreateMappingin successful way.