我们如何知道对epoll_wait()的调用是边缘触发还是水平触发?

时间:2022-09-09 11:42:20

I know that specifying the event EPOLLETswitches epoll from being level-triggered to edge-triggered. Does it mean by default call to epoll_wait() is Level-Triggered?

我知道指定事件EPOLLETswitches epoll从水平触发到边缘触发。是否默认调用epoll_wait()是否为Level-Triggered?

1 个解决方案

#1


1  

See 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.

So, when EPOLLET is not specified, level-triggered is the default option.

因此,当未指定EPOLLET时,水平触发是默认选项。

#1


1  

See 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.

So, when EPOLLET is not specified, level-triggered is the default option.

因此,当未指定EPOLLET时,水平触发是默认选项。