Linux上的AIO支持 [英] AIO support on Linux

查看:380
本文介绍了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手册中的一些文档< a>,但是建议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支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆