Lines Matching refs:ifd_nwds
114 size_t ifd_nwds; /* max watch descriptor that can be */ member
291 ifd->ifd_nwds = 1; in do_inotify_init()
292 ifd->ifd_wds = kmem_zalloc(ifd->ifd_nwds * sizeof(*ifd->ifd_wds), in do_inotify_init()
323 kmem_free(ifd->ifd_wds, ifd->ifd_nwds * sizeof(*ifd->ifd_wds)); in do_inotify_init()
467 for (i = 0; i < ifd->ifd_nwds; i++) { in linux_sys_inotify_add_watch()
532 if (wd+1 > ifd->ifd_nwds) { in linux_sys_inotify_add_watch()
536 ifd->ifd_nwds * sizeof(*ifd->ifd_wds)); in linux_sys_inotify_add_watch()
539 ifd->ifd_nwds * sizeof(*ifd->ifd_wds)); in linux_sys_inotify_add_watch()
542 ifd->ifd_nwds = wd+1; in linux_sys_inotify_add_watch()
631 KASSERT(0 <= wd && wd < ifd->ifd_nwds && ifd->ifd_wds[wd] != NULL); in inotify_close_wd()
683 if (wd < 0 || wd >= ifd->ifd_nwds || ifd->ifd_wds[wd] == NULL) { in linux_sys_inotify_rm_watch()
1211 for (i = 0; i < ifd->ifd_nwds; i++) { in inotify_close()
1235 kmem_free(ifd->ifd_wds, ifd->ifd_nwds * sizeof(*ifd->ifd_wds)); in inotify_close()