INOTIFY_INITSection: Linux Programmer's Manual (2)
Index Return to Main Contents
NAMEinotify_init - initialize an inotify instance
DESCRIPTIONinotify_init() initializes a new inotify instance and returns a file descriptor associated with a new inotify event queue.
RETURN VALUEOn success, inotify_init() returns a new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately).
- The user limit on the total number of inotify instances has been reached.
- The system limit on the total number of file descriptors has been reached.
- Insufficient kernel memory is available.
VERSIONSInotify was merged into the 2.6.13 Linux kernel.
CONFORMING TOThis system call is Linux specific.
SEE ALSOinotify_add_watch(2), inotify_rm_watch(2), inotify(7)