Lines Matching refs:fd_notify
77 static int fd_notify; variable
104 fd_notify = SAFE_FANOTIFY_INIT(tc->init_flags, O_RDONLY); in test_fanotify()
106 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD | mark->flag, in test_fanotify()
128 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
146 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
155 SAFE_FANOTIFY_MARK(fd_notify, in test_fanotify()
169 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
192 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
200 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD | mark->flag | in test_fanotify()
218 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
223 SAFE_FANOTIFY_MARK(fd_notify, in test_fanotify()
232 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
321 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_REMOVE | mark->flag, in test_fanotify()
325 SAFE_CLOSE(fd_notify); in test_fanotify()
345 if (fd_notify > 0) in cleanup()
346 SAFE_CLOSE(fd_notify); in cleanup()