1EPOLL_CREATE(2)            Linux Programmer's Manual           EPOLL_CREATE(2)
2
3
4

NAME

6       epoll_create - open an epoll file descriptor
7

SYNOPSIS

9       #include <sys/epoll.h>
10
11       int epoll_create(int size)
12

DESCRIPTION

14       Open  an  epoll  file  descriptor  by requesting the kernel allocate an
15       event backing store dimensioned for size descriptors. The size  is  not
16       the  maximum  size  of  the backing store but just a hint to the kernel
17       about how to dimension internal structures.  The returned file descrip‐
18       tor  will  be used for all the subsequent calls to the epoll interface.
19       The file descriptor returned by epoll_create(2) must be closed by using
20       close(2).
21

RETURN VALUE

23       When successful, epoll_create(2) returns a non-negative integer identi‐
24       fying the descriptor.  When an error occurs, epoll_create(2) returns -1
25       and errno is set appropriately.
26

ERRORS

28       EINVAL size is not positive.
29
30
31       ENFILE The  system  limit  on the total number of open files has
32              been reached.
33
34       ENOMEM There  was  insufficient  memory  to  create  the  kernel
35              object.
36

CONFORMING TO

38       epoll_create(2)  is Linux specific, and was introduced in kernel
39       2.5.44.
40

SEE ALSO

42       close(2), epoll_ctl(2), epoll_wait(2), epoll(7)
43
44
45
46Linux 2.6.7                       2004-06-17                   EPOLL_CREATE(2)
Impressum