github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/inotify.txt (about) 1 # Copyright 2015 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <linux/inotify.h> 5 6 resource fd_inotify[fd] 7 resource inotifydesc[int32] 8 9 inotify_init() fd_inotify 10 inotify_init1(flags flags[inotify_flags]) fd_inotify 11 inotify_add_watch(fd fd_inotify, file ptr[in, filename], mask flags[inotify_mask]) inotifydesc 12 inotify_rm_watch(fd fd_inotify, wd inotifydesc) 13 ioctl$INOTIFY_IOC_SETNEXTWD(fd fd_inotify, cmd const[INOTIFY_IOC_SETNEXTWD], arg intptr) 14 15 inotify_flags = IN_NONBLOCK, IN_CLOEXEC 16 inotify_mask = IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, IN_DONT_FOLLOW, IN_EXCL_UNLINK, IN_MASK_ADD, IN_ONESHOT, IN_ONLYDIR, IN_MASK_CREATE, IN_ISDIR