Re: Linux's implementation of poll() not scalable?

From: Miquel van Smoorenburg (
Date: Tue Oct 24 2000 - 17:09:08 EST

In article <>,
Linus Torvalds <> wrote:
> struct event {
> unsigned long id; /* file descriptor ID the event is on */
> unsigned long event; /* bitmask of active events */
> };
> int bind_event(int fd, struct event *event);

Shouldn't there also be a way to add non-filedescriptor based events
into this, such as "child exited" or "signal caught" or shm things?

Or should there simply be ways to make those events available
through filedescriptors anyway? Then you'd get /dev/events - open it, tell
it what kind of event you want to bind to the fd, pass it to bind_event,
read a struct event_info from it when there's something to read.

Just a random thought. Ignore if not appropriate.


Q: How many ears do Trekkies have?
A: Three; the left ear, the right ear, and the final front ear.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:14 EST