Linux内核中poll源码分析

函数原型: int poll (struct pollfd *fds, nfds_t nfds, int timeout); 其中pollfd类型的结构体包含三个元素。 fd:感兴趣的文件描述符 events:感兴趣的事件,包括可读、可写和异常 revents:实际发生的事件,由内核填充 几个重要的结构体: struct pollfd { int fd; short events; shor
相关文章
相关标签/搜索