1INOTIFY_INIT(2) Linux Programmer's Manual INOTIFY_INIT(2)
2
3
4
6 inotify_init - initialize an inotify instance
7
9 #include <sys/inotify.h>
10
11 int inotify_init(void)
12
14 inotify_init() initializes a new inotify instance and returns a file
15 descriptor associated with a new inotify event queue.
16
18 On success, inotify_init() returns a new file descriptor, or -1 if an
19 error occurred (in which case, errno is set appropriately).
20
22 EMFILE The user limit on the total number of inotify instances has been
23 reached.
24
25 ENFILE The system limit on the total number of file descriptors has
26 been reached.
27
28 ENOMEM Insufficient kernel memory is available.
29
31 Inotify was merged into the 2.6.13 Linux kernel.
32
34 This system call is Linux specific.
35
37 inotify_add_watch(2), inotify_rm_watch(2), inotify(7).
38
39
40
41Linux 2006-02-07 INOTIFY_INIT(2)