Lines Matching refs:fd_notify
39 static int fd_notify; variable
61 if (fanotify_mark(fd_notify, FAN_MARK_ADD | flag, FAN_OPEN, AT_FDCWD, in check_mark()
65 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file, in check_mark()
70 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file, in check_mark()
80 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_REMOVE | flag, in check_mark()
112 ret = SAFE_READ(0, fd_notify, event_buf + len, in verify_event()
149 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len); in verify_no_event()
160 tst_res(TFAIL | TERRNO, "read(%d, buf, %zu) failed", fd_notify, in verify_no_event()
189 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD, FAN_OPEN, AT_FDCWD, fname); in test01()
190 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_ADD, FAN_OPEN | FAN_ONDIR, in test01()
196 SAFE_FANOTIFY_MARK(fd_notify, FAN_MARK_FLUSH, 0, AT_FDCWD, "."); in test01()
216 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_NONBLOCK, in setup()
222 if (fd_notify > 0) in cleanup()
223 SAFE_CLOSE(fd_notify); in cleanup()