0

是否有类似于sendfile -syscall 的东西可以与多个目标文件描述符一起使用(即,不是从一个 FD 复制到另一个 FD,而是应该复制到 4 个 FD)?

我知道在谈论异步 IO 时,这被称为收集/分散,但我在 Linux AIO 文档中找不到任何内容。

4

1 回答 1

2

I am not aware of anything. I think the closest you are going to get to this is, assuming you are dealing with pipes, is to fashion something out of tee(2), vmsplice(2) and splice(2).

于 2010-08-19T22:48:42.603 回答