No it does't check. It's not needed for how it works.
> // application asks for current set of events
> app: ioctl(dev_poll_fd, EP_POLL):
> drivers/char/eventpoll.c:ep_poll():
> - return the current event queue
>
> In other words, when new fd's are added to the
> interest set, you generate synthetic events which
> are returned at the next ioctl(EP_POLL).
>
> Are you saying that isn't possible? It's the
> suggested behavior from the BMD paper, so evidently
> they got it to work somehow (and I suspect it's how
> Solaris /dev/poll works, but I'm not sure)
select()/poll() works in a different way :
1) select()/poll();
2) recv()/send();
while /dev/epoll works like described above :
1) if (recv()/send() == FAIL)
2) wait_event();
I intentionally changed the name to epoll coz it works in a different way.
- Davide
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/