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

标签 linux epoll

我知道指定事件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/

相关文章:

c++ - 使用 epoll 的套接字服务器在断开连接时给出未知字节

linux - 使用epoll检测网线拔出错误

python - cookie 中的执行错误

linux - 如何为套接字或 epoll 事件分配上下文

linux - 查找最大值和最小值并打印文件中的行

linux - 使用命名管道创建 'loop'

c - 是否有必要在关闭 epoll 实例本身之前删除兴趣列表中的所有文件描述符?

c - epoll 读取错误的字节

linux - 卷是什么时候挂载的?

linux - RealTek 8168(r8169 Linux 驱动程序)- Rx 描述符环混淆