轉自:http://www.cnblogs.com/darryo/p/selectpollepoll-on-serial-port.html In this article, I will use three asynchronous conferencing--select, poll and epoll on serial port to transmit data between PC and Raspberry pi. Outline Character device file
man epoll之后,得到如下结果: NAME epoll - I/O event notification facility SYNOPSIS #include <sys/epoll.h> DEscrptION epoll is a variant of poll(2) that can be used either as Edge or Level Triggered interface and scales well