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>
23 .\" 2008-10-10, mtk: add description of epoll_create1()
25 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
26 .\" all rights reserved.
27 .\" Translated Wed Jun 9 05:02:07 JST 2004
28 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
29 .\" Updated & Modified Wed Dec 29 07:12:00 JST 2004 by Yuichi SATO
30 .\" Updated & Modified Tue Apr 19 06:51:12 JST 2005 by Yuichi SATO
31 .\" Updated 2009-03-05 by Kentaro Shirakata <argrath@ub32.org>
33 .\"WORD: backing store バッキングストア
35 .TH EPOLL_CREATE 2 2009-01-17 "Linux" "Linux Programmer's Manual"
37 epoll_create, epoll_create1 \- epoll ファイルディスクリプタをオープンする
40 .B #include <sys/epoll.h>
42 .BI "int epoll_create(int " size );
43 .BI "int epoll_create1(int " flags );
49 個のディスクリプタを保持できる大きさのイベントバッキング
50 ストアの割り当てをカーネルに対して要求することにより、
54 内部構造の大きさをどの位にするかをカーネルに知らせるヒントでしかない。
60 は、新しい epoll インスタンスを参照するファイルディスクリプタを返す。
69 ある epoll インスタンスを参照する全てのファイルディスクリプタがクローズされると、
70 カーネルはそのインスタンスを破壊して、対応するリソースを解放し、
82 に以下の値をビット毎の論理和 (OR) で指定することで、
108 .RB ( epoll_create1 ())
113 .I /proc/sys/fs/epoll/max_user_instances
114 によって指定されている、epoll インスタンスのユーザー単位の制限に達した。
120 オープンされたファイルの総数がシステム制限に達した。
123 カーネルオブジェクトを作成するのに十分なメモリがなかった。
126 は Linux 独自であり、カーネル 2.5.44 で導入された。
127 .\" インタフェースは Linux カーネル 2.5.66 で確定されるべきである。
132 (カーネルは、動的に必要なデータ構造の大きさを決定し、