免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2364 | 回复: 3
打印 上一主题 下一主题

求epoll和sendfile的源码或者相关的源码分析文章,谢谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-26 14:46 |只看该作者 |倒序浏览
求epoll和sendfile的源码或者相关的源码分析文章,谢谢!

论坛徽章:
0
2 [报告]
发表于 2009-11-26 15:59 |只看该作者

回复 #1 wishel 的帖子

内核里面有

论坛徽章:
0
3 [报告]
发表于 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.

论坛徽章:
0
4 [报告]
发表于 2009-11-29 17:07 |只看该作者
原帖由 zhoubug 于 2009-11-26 16:14 发表
man 下就就挺详细
比如 sendfile


我想看看它怎么做的,然后自己能不能实现一个readfile和0 copy的异步epoll,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP