[英]IO multiplexing in Linux
Is there something like the sendfile -syscall that works with multiple target file descriptors (ie instead of copying from one FD to another FD, it could should copy to, say, 4 FDs)? 是否有诸如sendfile -syscall之类的东西可与多个目标文件描述符一起使用(即,不是应该从一个FD复制到另一个FD,而是应该复制到4个FD)?
I know that when talking about asynchronous IO, this is known as gather/scatter, but I could not find anything in the Linux AIO documentation. 我知道在谈论异步IO时,这称为收集/分散,但在Linux AIO文档中找不到任何内容。
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) . 我认为,假设要处理管道,最接近的方法是使用tee(2) , vmsplice(2)和splice(2)进行处理 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.