Chinaunix

标题: 求epoll和sendfile的源码或者相关的源码分析文章,谢谢! [打印本页]

作者: wishel    时间: 2009-11-26 14:46
标题: 求epoll和sendfile的源码或者相关的源码分析文章,谢谢!
求epoll和sendfile的源码或者相关的源码分析文章,谢谢!
作者: zimang    时间: 2009-11-26 15:59
标题: 回复 #1 wishel 的帖子
内核里面有
作者: zhoubug    时间: 2009-11-26 16:14
man 下就就挺详细
比如 sendfile
sendfile() copies data between one file descriptor and another.  Because this copying is done within the kernel, sendfile() is more
       efficient than the combination of read(2) and write(2), which would require transferring data to and from user space.

作者: wishel    时间: 2009-11-29 17:07
原帖由 zhoubug 于 2009-11-26 16:14 发表
man 下就就挺详细
比如 sendfile


我想看看它怎么做的,然后自己能不能实现一个readfile和0 copy的异步epoll,呵呵




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2