Lines Matching refs:filter
94 each filter to add custom fields at the end.
109 TAILQ_ENTRY(knote) event_ent; /* Used by filter->kf_event */
110 RB_ENTRY(knote) kntree_ent; /* Used by filter->kntree */
122 struct filter {
125 /* filter operations */
127 int (*kf_init)(struct filter *);
128 void (*kf_destroy)(struct filter *);
129 int (*kf_copyout)(struct filter *, struct kevent *, int);
133 int (*kn_create)(struct filter *, struct knote *);
134 int (*kn_modify)(struct filter *, struct knote *,
136 int (*kn_delete)(struct filter *, struct knote *);
137 int (*kn_enable)(struct filter *, struct knote *);
138 int (*kn_disable)(struct filter *, struct knote *);
144 struct evfilt_data *kf_data; /* filter-specific data */
150 /* Use this to declare a filter that is not implemented */
155 struct filter kq_filt[EVFILT_SYSCOUNT];
167 struct knote * knote_lookup(struct filter *, uintptr_t);
168 struct knote * knote_lookup_data(struct filter *filt, intptr_t);
170 void knote_free(struct filter *, struct knote *);
171 void knote_free_all(struct filter *);
172 void knote_insert(struct filter *, struct knote *);
176 void knote_enqueue(struct filter *, struct knote *);
177 struct knote * knote_dequeue(struct filter *);
178 int knote_events_pending(struct filter *);
187 int filter_lookup(struct filter **, struct kqueue *, short);
188 int filter_socketpair(struct filter *);
192 int filter_lower(struct filter *);
193 int filter_raise(struct filter *);