Re: kqueue, kevent - kernel event notification mechanism

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 6 Dec 2001 00:57:21 +0000 (GMT)


> are there any plans to implement the kqueue, kevent system calls
> in the linux kernel?

Not that I know of

> It would be good for linux to implement event-driven i/o, if not
> by means of kqueue/kevent (BSD-ish interface) then at least in
> some other way.

The standards way is asynchronous io (aio_* interfaces). That is being
worked on

> the difference. The current i/o calls, select and poll, scan all
> open file descriptors for events, every call. This is clearly
> not scalable. Event driven means that the kernel never scans

The API isnt directly the problem. In fact you can make a fine scalable select
by implementing

poll_setup(..............)
poll_add/poll_remove
poll_wait

as multiple calls giving basically the same interface that apps expected
anyway. Take a look at the various /dev/poll experimental interfaces and
bits of code.

Alan
-
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/