summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2001-03-03 23:36:06 +0000
committerNiels Provos <provos@cvs.openbsd.org>2001-03-03 23:36:06 +0000
commitad77c12b4fdab6be7fcd2bc09038018a608f6959 (patch)
tree81210dc051cdbd555018f13d58ff48a8ed8077d4 /sys
parent54611dd7e95fd1413f5bf07bf9847bee2a7087ba (diff)
cnkqfilter for sparc
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/cons.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/cons.c b/sys/arch/sparc/dev/cons.c
index a377e99e45c..5ba9feacb3c 100644
--- a/sys/arch/sparc/dev/cons.c
+++ b/sys/arch/sparc/dev/cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cons.c,v 1.10 2001/01/20 18:24:55 deraadt Exp $ */
+/* $OpenBSD: cons.c,v 1.11 2001/03/03 23:36:05 provos Exp $ */
/* $NetBSD: cons.c,v 1.30 1997/07/07 23:30:23 pk Exp $ */
/*
@@ -438,6 +438,16 @@ cnselect(dev, which, p)
return (ttselect(makedev(major(dev), 0), which, p));
}
+int
+cnkqfilter(dev, kn)
+ dev_t dev;
+ struct knote *kn;
+{
+ if (cdevsw[major(dev)].d_type & D_KQFILTER)
+ return ((*cdevsw[major(dev)].d_kqfilter)(makedev(major(dev), 0), kn));
+ return (1);
+}
+
/*
* The rest of this code is run only when we are using the ROM vectors.
*/