我知道如何向 DriverKit 发送数据并取回一些值,即应用程序调用和驱动程序从应用程序中IOConnectCallStructMethod()填写。OSDatastructureOutput
在我的应用程序中,它正在使用IOConnectCallAsyncScalarMethod()并且 kext 使用sendAsyncResult64()来让应用程序知道事件的到来。但是该方法sendAsyncResult64()在 DriverKit 中不可用。
我看到AsyncCompletion看起来像解决方案,但不知道要实现它。有谁知道该怎么做?如果有任何建议,请欣赏!