2 .\" epoll by Davide Libenzi ( efficient event notification retrieval )
3 .\" Copyright (C) 2003 Davide Libenzi
5 .\" This program is free software; you can redistribute it and/or modify
6 .\" it under the terms of the GNU General Public License as published by
7 .\" the Free Software Foundation; either version 2 of the License, or
8 .\" (at your option) any later version.
10 .\" This program is distributed in the hope that it will be useful,
11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 .\" GNU General Public License for more details.
15 .\" You should have received a copy of the GNU General Public License
16 .\" along with this program; if not, write to the Free Software
17 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 .\" Davide Libenzi <davidel@xmailserver.org>
21 .\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
22 .\" Modified 2005-04-04 by Marko Kohtala <marko.kohtala@gmail.com>
24 .TH EPOLL_CREATE 2 2008-05-29 "Linux" "Linux Programmer's Manual"
26 epoll_create \- open an epoll file descriptor
28 .B #include <sys/epoll.h>
30 .BI "int epoll_create(int " size );
34 file descriptor by requesting the kernel to allocate
35 an event backing store dimensioned for
40 is not the maximum size of the backing store but
41 just a hint to the kernel about how to dimension internal structures.
42 The returned file descriptor will be used for all the subsequent calls to the
45 The file descriptor returned by
47 must be closed by using
52 returns a non-negative integer identifying the descriptor.
65 The system limit on the total number of open files has been reached.
68 There was insufficient memory to create the kernel object.
71 is Linux-specific, and was introduced in kernel 2.5.44.
72 .\" The interface should be finalized by Linux kernel 2.5.66.
74 Since Linux 2.6.8, the