平台 论坛 博客 文库 | |
查看:
2272
|
回复:
2
|
[Linux] Linux下的fd都是Pollable的吗? [复制链接] |
|
10可用积分
最佳答案给你跟了一下内核代码, 调用链比较长, 给你个线索, 你可以自己探索:fs/eventpoll.c中的:SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event __user *, event)有如下检查: /* Get the "struct file *" for the target file */ tfile = fget(fd); if (!tfile) goto error_fput; /* The target ...
| |
|
||
|
| |
|
||
北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员 联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处
清除 Cookies - ChinaUnix - Archiver - WAP - TOP |