diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-03-03 23:36:06 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-03-03 23:36:06 +0000 |
commit | ad77c12b4fdab6be7fcd2bc09038018a608f6959 (patch) | |
tree | 81210dc051cdbd555018f13d58ff48a8ed8077d4 /sys/arch/sparc | |
parent | 54611dd7e95fd1413f5bf07bf9847bee2a7087ba (diff) |
cnkqfilter for sparc
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/cons.c | 12 |
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. */ |