gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 12:16:03 27 4
gpt4 key购买 nike

我知道指定事件 EPOLLET 会将 epoll 从水平触发切换为边缘触发。这是否意味着默认调用 epoll_wait() 是 Level-Triggered?

最佳答案

参见 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 时,level-triggered 是默认选项。

关于linux - 我们如何知道对 epoll_wait() 的调用是边沿触发还是电平触发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24400941/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com