1INOTIFY_RM_WATCH(2)        Linux Programmer's Manual       INOTIFY_RM_WATCH(2)
2
3
4

NAME

6       inotify_rm_watch - remove an existing watch from an inotify instance
7

SYNOPSIS

9       #include <sys/inotify.h>
10
11       int inotify_rm_watch(int fd, int wd);
12

DESCRIPTION

14       inotify_rm_watch() removes the watch associated with the watch descrip‐
15       tor wd from the inotify instance associated with  the  file  descriptor
16       fd.
17
18       Removing  a  watch  causes an IN_IGNORED event to be generated for this
19       watch descriptor.  (See inotify(7).)
20

RETURN VALUE

22       On success, inotify_rm_watch() returns zero, or -1 if an error occurred
23       (in which case, errno is set appropriately).
24

ERRORS

26       EBADF  fd is not a valid file descriptor.
27
28       EINVAL The  watch  descriptor  wd is not valid; or fd is not an inotify
29              file descriptor.
30

VERSIONS

32       Inotify was merged into the 2.6.13 Linux kernel.
33

CONFORMING TO

35       This system call is Linux-specific.
36

SEE ALSO

38       inotify_add_watch(2), inotify_init(2), inotify(7)
39

COLOPHON

41       This page is part of release 3.53 of the Linux  man-pages  project.   A
42       description  of  the project, and information about reporting bugs, can
43       be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47Linux                             2010-10-15               INOTIFY_RM_WATCH(2)
Impressum