epoll_wait的返回值
时间: 2023-10-04 22:12:45 浏览: 221
epoll_wait的返回值是成功时,返回准备就绪的文件描述符的数目;如果在请求的超时时间内没有文件描述符准备就绪,则返回0;发生错误时,返回-1并正确设置errno。该函数用于等待epoll文件描述符上的I/O事件,并将准备就绪的事件存储在events参数指向的结构体数组中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [epoll_wait详解](https://blog.csdn.net/zhoumuyu_yu/article/details/112476477)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [create、epoll_ctl、epoll_wait、close(在epoll的ET模式下,read和write或send和recv当返回值0且errno=...](https://download.csdn.net/download/qq_64160493/73471754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文