Lines Matching refs:fd_notify
47 static volatile int fd_notify; variable
155 SAFE_CLOSE(fd_notify); in child_handler()
156 fd_notify = -1; in child_handler()
176 SAFE_CLOSE(fd_notify); in run_child()
221 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_CONTENT, O_RDONLY); in setup_mark()
224 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD | mark->flag, in setup_mark()
248 while (test_num < tc->event_count + 1 && fd_notify != -1) { in test_fanotify()
253 ret = read(fd_notify, event_buf + len, in test_fanotify()
255 if (fd_notify == -1) in test_fanotify()
260 fd_notify, EVENT_BUF_LEN); in test_fanotify()
298 SAFE_WRITE(1, fd_notify, &resp, sizeof(resp)); in test_fanotify()
317 if (fd_notify > 0) in test_fanotify()
318 SAFE_CLOSE(fd_notify); in test_fanotify()
336 if (fd_notify > 0) in cleanup()
337 SAFE_CLOSE(fd_notify); in cleanup()