Messages in this thread |  | | Date | Sat, 19 Oct 2002 10:19:56 -0700 (PDT) | | From | Davide Libenzi <> | | Subject | Re: epoll (was Re: [PATCH] async poll for 2.5) |
| |
On Sat, 19 Oct 2002, Mark Mielke wrote:
> On Fri, Oct 18, 2002 at 12:16:48PM -0700, Davide Libenzi wrote: > > These functions are taken from the really simple example http server used > > to test/compare /dev/epoll with poll()/select()/rt-sig//dev/poll : > > They still represent an excessive complicated model that attempts to > implement /dev/epoll the same way that one would implement poll()/select(). > > Sometimes the answer isn't emulation, or comparability. > > Sometimes the answer is innovation.
Hem ... they're about 100 lines of code and they rapresent a complete I/O dispatching engine. And yes, like you could guess from the source code, the same skeleton was used, with different event retrieval methods, to test poll() , rt-sig , /dev/poll and /dev/epoll. And, as I said in the previous email, you could have implemented an I/O driven state machine. I personally like a little bit more coroutines, that the reason of such implementation.
- Davide
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |