IOSharedDataQueue 示例

发布于 2024-09-30 19:18:59 字数 61 浏览 1 评论 0原文

我在哪里可以找到使用 IOSharedDataQueue 的示例代码(我想将数据从用户空间发送到内核空间)?

Where can i found sample code for using IOSharedDataQueue ( i want to send data from user-space to kernel-space)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢你一世 2024-10-07 19:18:59

在用户空间和内核空间之间发送零星数据通常是通过 IOUserClient http: //developer.apple.com/library/mac/#samplecode/SimpleUserClient/Introduction/Intro.html

IOSharedDataQueue 是一个更大的锤子,将运行恒定的数据流,就像您需要推/拉一样实时音频或视频数据。

如果您只需要从内核获取消息或通知,请使用 userClient...

sending sporadic data betwixt userland and kernelspace is generally done via IOUserClient http://developer.apple.com/library/mac/#samplecode/SimpleUserClient/Introduction/Intro.html

IOSharedDataQueue is a bigger hammer and would be to run a constant stream of data, like if you needed to push / pull audio or video data in realtime.

if you just need to get messages or notifications to and from the kernel, use a userClient...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文