Lines Matching refs:filt
107 static struct filterops *kqueue_fo_find(int filt);
108 static void kqueue_fo_release(int filt);
1019 kqueue_add_filteropts(int filt, struct filterops *filtops)
1024 if (filt > 0 || filt + EVFILT_SYSCOUNT < 0) {
1027 ~filt, EVFILT_SYSCOUNT);
1031 if (sysfilt_ops[~filt].for_fop != &null_filtops &&
1032 sysfilt_ops[~filt].for_fop != NULL)
1035 sysfilt_ops[~filt].for_fop = filtops;
1036 sysfilt_ops[~filt].for_refcnt = 0;
1044 kqueue_del_filteropts(int filt)
1049 if (filt > 0 || filt + EVFILT_SYSCOUNT < 0)
1053 if (sysfilt_ops[~filt].for_fop == &null_filtops ||
1054 sysfilt_ops[~filt].for_fop == NULL)
1056 else if (sysfilt_ops[~filt].for_refcnt != 0)
1059 sysfilt_ops[~filt].for_fop = &null_filtops;
1060 sysfilt_ops[~filt].for_refcnt = 0;
1068 kqueue_fo_find(int filt)
1071 if (filt > 0 || filt + EVFILT_SYSCOUNT < 0)
1075 sysfilt_ops[~filt].for_refcnt++;
1076 if (sysfilt_ops[~filt].for_fop == NULL)
1077 sysfilt_ops[~filt].for_fop = &null_filtops;
1080 return sysfilt_ops[~filt].for_fop;
1084 kqueue_fo_release(int filt)
1087 if (filt > 0 || filt + EVFILT_SYSCOUNT < 0)
1091 KASSERT(sysfilt_ops[~filt].for_refcnt > 0,
1093 sysfilt_ops[~filt].for_refcnt--;
1109 int error, filt, event;
1118 filt = kev->filter;
1119 fops = kqueue_fo_find(filt);
1334 kqueue_fo_release(filt);