I have a list of a file descriptor for which I have created the events, and I want to know that
What is a way to get a list of "ready" file descriptors, such as what epoll_wait provides?
Incoming events eventlist
buffer kevent
Call this, making this buffer large enough will give you the list you want. The return value of the kevent
call will tell you that you have many incidents in the eventlist
buffer.
If using a large buffer is not possible for some reason, unless you receive zero events in the eventlist, you will always have a noisy callout with noise timeout and a small buffer You can kevent
.
Comments
Post a Comment