Linux上的AIO支持

编程入门 行业动态 更新时间:2024-10-28 03:21:44
本文介绍了Linux上的AIO支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有谁知道我可以在最新的Linux内核上获取关于aio的内核支持状态的最新信息。

Does anyone know where I can get up to date information about the state on Kernel support for aio on the latest Linux Kernel?. Google searches bring up web pages that may be hopelessly out of date.

编辑:

更具体地说,我我对非文件相关的描述符,如管道和套接字感兴趣。

More specifically, I am interested in non-file related descriptors like pipes and sockets. Stuff on the web indicate that there is no support, is this still the case?

Edit2:我正在寻找的东西类似于Windows OVERLAPPED IO

What I am looking for is something similar to Windows OVERLAPPED IO

推荐答案

AIO支持已经包含在linux内核中。这就是为什么 Google上的第一次点击只为2.4 Linux内核提供补丁。

AIO support has been included in the linux kernel proper. That's why the first hit on Google only offers patches to the 2.4 Linux kernel. In 2.6 and 3.0 it's already in there.

如果你检出Linux内核源代码,它在fs / aio.c

If you checkout the Linux kernel source code, it's at fs/aio.c

有 GNU libc手册中的一些文档,但是建议aio不可能用于所有类型的Linux文件描述符。 常规如何文档的大部分日期大约在2006年,这是适当的,因为那是在Linux的AIO正在做的头条。

There's some documentation in the GNU libc manual, but be advised that aio is not possible for all types of Linux file descriptors. Most of the general "how to" documentation is dated around 2006, which is appropriate since that's when AIO in Linux was making the headlines.

请注意,POSIX.1b和Unix98标准没有改变,所以你可以有点具体的例子的过期性质的性质?

Note that the POSIX.1b and Unix98 standards haven't changed, so can you be a bit specific as to the nature of the "out-of-date"ness of the examples?

更多推荐

Linux上的AIO支持

本文发布于:2023-07-27 00:29:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219238.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Linux   AIO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!