[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] /dev/epoll update ...
In article <local.mail.linux-kernel/> you write:
>"Christopher K. St. John" wrote:
>> Ok, just to confirm. Using the language of BSD's
>> kqueue[1]. you've got:
>> a) report the event only once when it occurs aka
>> "edge triggered" (EV_CLEAR, not EV_ONESHOT)
>> b) continuously report the event as long as the
>> state is valid, aka "level triggered"
>Right, and kqueue() can't even represent the 'level triggered' style --
>or at least it isn't clear from the paper that it can! True "level triggered"
>would require that the kernel track readiness of the affected file descriptors.

Yes it does - kqueue() is 'level-triggered' by default. You may want
to check my latest USENIX paper, which explains this, as well as some
performance measurements, at:

The kernel validates the state (or "level") before returning the event
to the user, so the event is guaranteed to be valid at the time the
syscall returns.

As Christopher pointed out, any event can be converted into an
edge-triggered style notification simply by setting EV_CLEAR. However,
this is not usually a popular model from a programmer's point of view,
as it increases the complexity of their app. (This is what I've seen, YMMV)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.425 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site