IN_ISDIR
_Static_assert(LINUX_IN_ISDIR == IN_ISDIR,
isdir = vp->v_type == VDIR ? IN_ISDIR : 0;
KASSERT((event & ~(IN_ALL_EVENTS | IN_ISDIR | IN_UNMOUNT)) == 0,
isdir = vp->v_type == VDIR ? IN_ISDIR : 0;
IN_ISDIR)
consume_event(ifd, wd, IN_DELETE_SELF, IN_ISDIR, NULL);
consume_event(ifd, wd, IN_OPEN, IN_ISDIR, NULL);
consume_event(ifd, wd, IN_OPEN, IN_ISDIR, NULL);
consume_event(ifd, wd, IN_ACCESS, IN_ISDIR, "dir");
consume_event(ifd, wd, IN_ACCESS, IN_ISDIR, NULL);
consume_event(ifd, wd1, IN_CLOSE_NOWRITE, IN_ISDIR, NULL);
consume_event(ifd, wd, IN_CREATE, IN_ISDIR, "dir");
consume_event(ifd, wd, IN_DELETE_SELF, IN_ISDIR, NULL);
consume_event(ifd, wd1, IN_MOVE_SELF, IN_ISDIR, NULL);
consume_event(ifd, wd2, IN_MOVED_TO, IN_ISDIR, "dir");
cookie1 = consume_event_cookie(ifd, wd1, IN_MOVED_FROM, IN_ISDIR,
cookie2 = consume_event_cookie(ifd, wd1, IN_MOVED_TO, IN_ISDIR,
consume_event(ifd, wd, IN_OPEN, IN_ISDIR, NULL);
consume_event(ifd, wd, IN_OPEN, IN_ISDIR, NULL);