[英]what is the difference between EPOLL File descriptor and event file descriptor?
我在线程中为IPC使用EPOLL和eventfd,但是我没有得到参数epoll文件描述符和事件文件描述符之间的差异
你能详细说明一下吗?
谢谢。
epoll文件描述符 :系统调用:
int epoll_create1(int flags);
返回epoll
文件描述符,也称为efd
。 此描述符用于轮询( epoll_wait
)和control(epoll_ctl)命令。
事件文件描述符 :正常的套接字fd从socket
返回或accept
像系统调用一样的event
文件描述符。 这些文件描述符是设置事件,例如EPOLLIN
, EPOLLOUT
, EPOLLET
等。
事件文件描述符在事件文件描述符上注册或绑定,以轮询事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.