The advantage is that it can be used to collect
completion notifications for aio. (It can also be
used to collect readiness notification via either
linux's traditional rtsig stuff, or the signal-per-fd stuff,
so this unifies readiness notification and completion notification,
in case you happen to want to use both in the same thread.)
> I ask because yesterday I used /dev/epoll in a project and it behaves *very*
> well, so I'm wondering what advantages your interface would bring.
I am a huge fan of /dev/epoll and would like to see it integrated
into the ac series. /dev/epoll doesn't address the needs of those
who are doing aio, though.
> How do you handle signal queue overflow? signal-per-fd helps, but you still
> have to have the queue as big as the maximum number of fds is...
I am not addressing that issue. However, when doing aio, the
application can simply avoid issuing more than N I/O operations,
where N is comfortably lower than the current size of the signal queue.
When I get around to reading the kernel source finally, maybe I'll
have a look at what the costs of large signal queues are.
- Dan
-- "I have seen the future, and it licks itself clean." -- Bucky Katt - 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/