我知道指定事件EPOLLET
会将epoll从电平触发切换为边缘触发。
这是否意味着默认情况下对 epoll_wait()
的调用是级别触发的?
最佳答案
参见http://man7.org/linux/man-pages/man7/epoll.7.html
By contrast, when used as a level-triggered interface (the default,
when EPOLLET is not specified), epoll is simply a faster poll(2), and
can be used wherever the latter is used since it shares the same
semantics.
因此,当未指定EPOLLET时,级别触发是默认选项。
关于linux - 我们如何知道对 epoll_wait() 的调用是边缘触发还是电平触发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24400941/