On 5/6/07, Andrew Morton <akpm@linux-foundation.org> wrote:
One more thing: recently in a network-related discussion with DaveM
et.al. we came across a situation where we want events from the
kernel. The requirement is for fast event notification (or
non-blocking polling) and the event is only implicitly needed. Having
a file descriptor open is not an option. The possibilities are
- open a file in /proc or /sys or a socket for every call to te
function to check for events
- have a memory-mapped interface like kevent which does not keep file
descriptors open
File descriptions are problematic when it comes implicitly uses in the
runtime. This is, for instance, why we have MAP_ANON instead of
keeping a /dev/null file descriptor open all the time.
-