sys_epoll_create  [fs/eventpoll.c]


Opens an epoll file descriptor by requesting the kernel allocate an event backing store for size descriptors.

Arguments

eax 254
ebx Size (a hint to kernel on how dimension internal structures). It can not be 0.

Return values

If the system call succeeds the return value is epoll file descriptor.
If the system call fails the return value is one of the following errno values:

-EINVAL ebx is not positive.
-ENFILE The system limit on a total number of open file has been reached.
-ENOMEM There was insufficient memory to create kernel object..

Remarks

A file descriptor returned by sys_epoll_create must be closed by sys_close.

Compatibility

n/a