Lines Matching defs:filt
45 struct filter *filt = (struct filter *) arg;
86 pthread_mutex_lock(&filt->kf_mtx);
87 kn = knote_lookup(filt, pid);
92 LIST_INSERT_HEAD(&filt->kf_eventlist, kn, entries);
95 filter_raise(filt);
97 pthread_mutex_unlock(&filt->kf_mtx);
106 evfilt_proc_init(struct filter *filt)
113 if (filter_socketpair(filt) < 0)
115 if (pthread_create(&ed->wthr_id, NULL, wait_thread, filt) != 0)
126 evfilt_proc_destroy(struct filter *filt)
128 //TODO: pthread_cancel(filt->kf_data->wthr_id);
129 close(filt->kf_pfd);
133 evfilt_proc_copyin(struct filter *filt,
150 evfilt_proc_copyout(struct filter *filt,
157 filter_lower(filt);
159 LIST_FOREACH(kn, &filt->kf_eventlist, entries) {
178 if (!LIST_EMPTY(&filt->kf_eventlist))
179 filter_raise(filt);