epoll_create(2) System Calls Manual epoll_create(2) epoll_create, epoll_create1 - epoll C (libc, -lc) #include int epoll_create(int size); int epoll_create1(int flags); epoll_create() creates a new epoll(7) instance. Since Linux 2.6.8, the size argument is ignored, but must be greater than zero; see HISTORY. epoll_create() , epoll. epoll. , epoll_create(), close(2). , epoll, , . epoll_create1() flags 0, , , size , epoll_create1() epoll_create(). flags : EPOLL_CLOEXEC close-on-exec (FD_CLOEXEC) . O_CLOEXEC open(2) , . On success, these system calls return a file descriptor (a nonnegative integer). On error, -1 is returned, and errno is set to indicate the error. EINVAL size . EINVAL (epoll_create1()) flags. EMFILE . ENFILE . ENOMEM . Linux. epoll_create() Linux 2.6, glibc 2.3.2. epoll_create1() Linux 2.6.27, glibc 2.9. epoll_create() size , epoll. , ( , , , size). , ( ), size -- epoll . Prior to Linux 2.6.29, a /proc/sys/fs/epoll/max_user_instances kernel parameter limited live epolls for each real user ID, and caused epoll_create() to fail with EMFILE on overrun. close(2), epoll_ctl(2), epoll_wait(2), ioctl_eventpoll(2), epoll(7) () Azamat Hackimov , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 12 2024 . epoll_create(2)