From ad77c12b4fdab6be7fcd2bc09038018a608f6959 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sat, 3 Mar 2001 23:36:06 +0000 Subject: cnkqfilter for sparc --- sys/arch/sparc/dev/cons.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc/dev/cons.c') 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. */ -- cgit v1.2.3