Skip to contentSkip to conversation

/dev/epoll update ...

PATCH Dan Kegel 1 participant 1 message Sep 25, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): local.mail.linux-kernel/[email protected]

Dan Kegel

author
#1 lore raw
Quoted 6 lines · Jonathan Lemon

In article <local.mail.linux-kernel/[email protected]> you write:

Quoted 2 lines

Right, and kqueue() can't even represent the 'level triggered' style -- or at least it isn't clear from the paper that it can!

Yes it does - kqueue() is 'level-triggered' by default.

Apologies for the line noise. I've corrected
http://www.kegel.com/c10k.html to show kqueue as both edge- and level- triggered. Further corrections welcome...

Quoted 4 lines

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)

Agreed; the poll()-like semantics of level-triggering are particularly forgiving.

- Dan