[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Notifications on kernel events



There were some threads here about a user program getting notified
when a particular file was read or some kernel level event happened.

FreeBSD's implementation of kqueue/kevent accomplishes that task:

http://www.freebsd.org/cgi/man.cgi?query=kqueue&apropos=0&sektion=0&manpath=FreeBSD+5.0-current&format=html

There was discussion on the linux-kernel too, but Linus trashed
the kevent API as being too cumbersome.

[ Search "Linus kevent" in: http://www.deja.com/home_ps.shtml ]

The intent of the kevent API was to provide alternatives to select/poll,
both of which are inefficient (O(n) scans) for large number of
handles/descriptors.

	-Arun