1 .\" man2/inotify_init.2 - inotify_init man page
3 .\" Copyright (C) 2005 Robert Love
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
25 .\" 2005-07-19 Robert Love <rlove@rlove.org> - initial version
26 .\" 2006-02-07 mtk, minor changes
27 .\" 2008-10-10 mtk: add description of inotify_init1()
29 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI
30 .\" all rights reserved.
31 .\" Translated 2006-08-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.39
32 .\" Updated 2008-11-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.12
34 .TH INOTIFY_INIT 2 2008-10-10 "Linux" "Linux Programmer's Manual"
36 inotify_init, inotify_init1 \- inotify インスタンスを初期化する
39 .B #include <sys/inotify.h>
41 .B "int inotify_init(void);"
42 .BI "int inotify_init1(int " flags );
46 は、新規の inotify インスタンスを初期化し、作成された inotify イベントキュー
56 に以下の値をビット毎の論理和 (OR) で指定することで、
60 新しく生成されるオープンファイル記述 (open file description) の
80 成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。
87 .RB ( inotify_init1 ())
93 inotify インスタンスの総数がユーザ単位の上限に達していた。
96 inotify インスタンスの総数がシステムの上限に達していた。
102 は Linux 2.6.13 で初めて登場した。
104 は Linux 2.6.27 で追加された。
106 これらのシステムコールは Linux 独自である。
108 .BR inotify_add_watch (2),
109 .BR inotify_rm_watch (2),