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!
IOConnectCallStructMethod
and prepares a buffer for driver, and in my driver useIOMemoryDescriptor::CreateMapping
to fill related data let app get it. But I don't know how to useIOMemoryDescriptor::CreateMapping
in successful way. – Knuckle