Lines Matching refs:fd_notify
61 static int fd, fd_notify; variable
80 if (fanotify_mark(fd_notify, FAN_MARK_ADD, FAN_ACCESS | in main()
88 "failed", fd_notify); in main()
110 ret = SAFE_READ(cleanup, 0, fd_notify, event_buf, in main()
129 ret = SAFE_READ(cleanup, 0, fd_notify, event_buf + len, in main()
136 if (fanotify_mark(fd_notify, FAN_MARK_REMOVE, in main()
141 fd_notify); in main()
162 ret = SAFE_READ(cleanup, 0, fd_notify, event_buf + len, in main()
234 if ((fd_notify = fanotify_init(FAN_CLASS_NOTIF, O_RDONLY)) < 0) { in setup()
247 if (fd_notify > 0 && close(fd_notify)) in cleanup()
248 tst_resm(TWARN | TERRNO, "close(%d) failed", fd_notify); in cleanup()