Home | History | Annotate | Download | only in kern

Lines Matching defs:filtops

273  * If filtops is NULL, the filter isn't implemented in NetBSD.
282 const struct filterops *filtops;/* operations for filter */
745 kfilter_register(const char *name, const struct filterops *filtops,
752 if (name == NULL || name[0] == '\0' || filtops == NULL)
794 kfilter->filtops = kmem_alloc(sizeof(*filtops), KM_SLEEP);
795 memcpy(__UNCONST(kfilter->filtops), filtops, sizeof(*filtops));
806 * This retains the filter id, but clears the name and frees filtops (filter
838 if (kfilter->filtops != NULL) {
840 kmem_free(__UNCONST(kfilter->filtops),
841 sizeof(*kfilter->filtops));
842 kfilter->filtops = NULL; /* mark as `not implemented' */
1908 if (kfilter == NULL || kfilter->filtops == NULL) {
1916 if (kfilter->filtops->f_flags & FILTEROP_ISFD) {
1971 kn->kn_fop = kfilter->filtops;