I want to send data from one file descriptor to another via linux-aio without buffering and without transferring data to and from user space. Is such a sendfile64() funktion possible with linux-aio?

I looked at some linux-aio examples (in C/C++) and simple file-copy programs. All these examples do reading -> buffer -> writing.

regards, philip

有帮助吗?

解决方案

It's possible if you mmap the file, then you can make a aio sendfile. It's faster then sendfile via do_splice and should not sync at i_mutex. Look at the lighttp linux_aio module.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top