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.  On error, -1 is  returned
23       and errno is set to indicate the error.
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 5.13 of the Linux  man-pages  project.   A
42       description  of  the project, information about reporting bugs, and the
43       latest    version    of    this    page,    can     be     found     at
44       https://www.kernel.org/doc/man-pages/.
45
46
47
48Linux                             2021-03-22               INOTIFY_RM_WATCH(2)
Impressum