摘要: http://blog.csdn.net/lbmygf/article/details/7360084 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/init.h> 4 #include <linu 阅读全文
posted @ 2016-04-15 18:04 OracleLoyal 阅读(155) 评论(0) 推荐(0) 编辑
摘要: struct pollfd { int fd; //当前描述符 short events; //进程关心的该描述符的事件 short revents; //返回的事件};asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int 阅读全文
posted @ 2016-04-15 13:28 OracleLoyal 阅读(398) 评论(0) 推荐(0) 编辑
摘要: Epoll详解及源码分析 1.什么是epoll epoll是当前在Linux下开发大规模并发网络程序的热门人选,epoll 在Linux2.6内核中正式引入,和select相似,都是I/O多路复用(IO multiplexing)技术,按照man手册的说法:是为处理大批量句柄而作了改进的poll。 阅读全文
posted @ 2016-04-15 13:14 OracleLoyal 阅读(281) 评论(0) 推荐(0) 编辑