No, epoll_waitit maxeventstells you the maximum number of events to be returned. This has nothing to do with how many of them are supported in the kernel.
Older versions epoll_createused size to set certain restrictions, but it was no longer used, so the comment that the argument is sizedeprecated.
The advantage of using it epoll_create1is that it allows you to specify flags that, it seems to me, are currently limited to closing-exec (so that the file descriptor automatically closes when execanother process is running).
source
share