PDA

View Full Version : kevent for kqueues


tobe
June 3rd, 2009, 10:36
Hi,

The document about queue (http://people.freebsd.org/~jlemon/papers/kqueue.pdf) state that:
The returned value from kqueue() is treated as an ordinary descriptor, and can in turn be passed to poll(), select(), or even registered in another kqueue

When registered in another kqueue, what filter should i use?

Thanks,
Tobé

bb
July 20th, 2009, 09:46
must be EVFILT_READ

tobe
July 20th, 2009, 15:18
Thanks i'll try that. I don't really need it, i'm just curious :)