Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/kqueue]: src/sys/arch use nokqfilter (or seltrue_kqfilter()) for drivers...



details:   https://anonhg.NetBSD.org/src/rev/5e65da6e43af
branches:  kqueue
changeset: 512547:5e65da6e43af
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Oct 10 22:00:08 2002 +0000

description:
use nokqfilter (or seltrue_kqfilter()) for drivers which provide poll
routine very similar to seltrue(); the poll routines would be cleaned
up on trunk

diffstat:

 sys/arch/amiga/dev/grf.c         |  15 +++------------
 sys/arch/amiga/dev/view.c        |  15 +++------------
 sys/arch/atari/dev/grf.c         |  13 ++-----------
 sys/arch/atari/dev/view.c        |  13 ++-----------
 sys/arch/hp300/dev/grf.c         |  15 +++------------
 sys/arch/hpcmips/dev/ucbsnd.c    |  13 ++-----------
 sys/arch/mac68k/dev/grf_compat.c |  13 ++-----------
 sys/arch/mac68k/obio/asc.c       |  13 ++-----------
 sys/arch/x68k/dev/grf.c          |  13 ++-----------
 9 files changed, 21 insertions(+), 102 deletions(-)

diffs (truncated from 357 to 300 lines):

diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/amiga/dev/grf.c
--- a/sys/arch/amiga/dev/grf.c  Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/amiga/dev/grf.c  Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.37.4.5 2002/10/10 18:31:24 jdolecek Exp $ */
+/*     $NetBSD: grf.c,v 1.37.4.6 2002/10/10 22:00:09 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.37.4.5 2002/10/10 18:31:24 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.37.4.6 2002/10/10 22:00:09 jdolecek Exp $");
 
 /*
  * Graphics display driver for the Amiga
@@ -104,11 +104,10 @@
 dev_type_ioctl(grfioctl);
 dev_type_poll(grfpoll);
 dev_type_mmap(grfmmap);
-dev_type_kqfilter(grfkqfilter);
 
 const struct cdevsw grf_cdevsw = {
        grfopen, grfclose, nullread, nullwrite, grfioctl,
-       nostop, notty, grfpoll, grfmmap, grfkqfilter,
+       nostop, notty, grfpoll, grfmmap, nokqfilter,
 };
 
 /*
@@ -298,14 +297,6 @@
        return(events & (POLLOUT | POLLWRNORM));
 }
 
-int
-grfkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
-
 /*
  * map the contents of a graphics display card into process'
  * memory space.
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/amiga/dev/view.c
--- a/sys/arch/amiga/dev/view.c Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/amiga/dev/view.c Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: view.c,v 1.17.4.5 2002/10/10 18:31:33 jdolecek Exp $ */
+/*     $NetBSD: view.c,v 1.17.4.6 2002/10/10 22:00:09 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -38,7 +38,7 @@
  * a interface to graphics. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.17.4.5 2002/10/10 18:31:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.17.4.6 2002/10/10 22:00:09 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -80,11 +80,10 @@
 dev_type_ioctl(viewioctl);
 dev_type_poll(viewpoll);
 dev_type_mmap(viewmmap);
-dev_type_kqfilter(viewkqfilter);
 
 const struct cdevsw view_cdevsw = {
        viewopen, viewclose, nullread, nullwrite, viewioctl,
-       nostop, notty, viewpoll, viewmmap, viewkqfilter,
+       nostop, notty, viewpoll, viewmmap, nokqfilter,
 };
 
 /*
@@ -410,11 +409,3 @@
 {
        return(events & (POLLOUT | POLLWRNORM));
 }
-
-int
-viewkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/atari/dev/grf.c
--- a/sys/arch/atari/dev/grf.c  Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/atari/dev/grf.c  Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.25.4.4 2002/10/10 18:32:00 jdolecek Exp $    */
+/*     $NetBSD: grf.c,v 1.25.4.5 2002/10/10 22:00:09 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1995 Leo Weppelman
@@ -109,11 +109,10 @@
 dev_type_ioctl(grfioctl);
 dev_type_poll(grfpoll);
 dev_type_mmap(grfmmap);
-dev_type_kqfilter(grfkqfilter);
 
 const struct cdevsw grf_cdevsw = {
        grfopen, grfclose, noread, nowrite, grfioctl,
-       nostop, notty, grfpoll, grfmmap, grfkqfilter,
+       nostop, notty, grfpoll, grfmmap, nokqfilter,
 };
 
 /*
@@ -286,14 +285,6 @@
        return (revents);
 }
 
-int
-grfkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
-
 /*
  * map the contents of a graphics display card into process' 
  * memory space.
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/atari/dev/view.c
--- a/sys/arch/atari/dev/view.c Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/atari/dev/view.c Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: view.c,v 1.17.4.4 2002/10/10 18:32:04 jdolecek Exp $   */
+/*     $NetBSD: view.c,v 1.17.4.5 2002/10/10 22:00:10 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -73,11 +73,10 @@
 dev_type_ioctl(viewioctl);
 dev_type_poll(viewpoll);
 dev_type_mmap(viewmmap);
-dev_type_kqfilter(viewkqfilter);
 
 const struct cdevsw view_cdevsw = {
        viewopen, viewclose, nullread, nullwrite, viewioctl,
-       nostop, notty, viewpoll, viewmmap, viewkqfilter,
+       nostop, notty, viewpoll, viewmmap, nokqfilter,
 };
 
 /* 
@@ -462,14 +461,6 @@
        return (revents);
 }
 
-int
-viewkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
-
 view_t *
 viewview(dev)
 dev_t  dev;
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/hp300/dev/grf.c
--- a/sys/arch/hp300/dev/grf.c  Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/hp300/dev/grf.c  Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.39.2.4 2002/10/10 18:32:37 jdolecek Exp $    */
+/*     $NetBSD: grf.c,v 1.39.2.5 2002/10/10 22:00:10 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.39.2.4 2002/10/10 18:32:37 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.39.2.5 2002/10/10 22:00:10 jdolecek Exp $");
 
 #include "opt_compat_hpux.h"
 
@@ -103,11 +103,10 @@
 dev_type_ioctl(grfioctl);
 dev_type_poll(grfpoll);
 dev_type_mmap(grfmmap);
-dev_type_kqfilter(grfkqfilter);
 
 const struct cdevsw grf_cdevsw = {
        grfopen, grfclose, nullread, nullwrite, grfioctl,
-       nostop, notty, grfpoll, grfmmap, grfkqfilter,
+       nostop, notty, grfpoll, grfmmap, nokqfilter,
 };
 
 int    grfprint __P((void *, const char *));
@@ -308,14 +307,6 @@
        return (events & (POLLOUT | POLLWRNORM));
 }
 
-int
-grfkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
-
 /*ARGSUSED*/
 paddr_t
 grfmmap(dev, off, prot)
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/hpcmips/dev/ucbsnd.c
--- a/sys/arch/hpcmips/dev/ucbsnd.c     Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/hpcmips/dev/ucbsnd.c     Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucbsnd.c,v 1.5.6.4 2002/10/10 18:32:56 jdolecek Exp $ */
+/*     $NetBSD: ucbsnd.c,v 1.5.6.5 2002/10/10 22:00:10 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -182,11 +182,10 @@
 dev_type_ioctl(ucbsndioctl);
 dev_type_poll(ucbsndpoll);
 dev_type_mmap(ucbsndmmap);
-dev_type_kqfilter(ucbsndkqfilter);
 
 const struct cdevsw ucbsnd_cdevsw = {
        ucbsndopen, ucbsndclose, ucbsndread, ucbsndwrite, ucbsndioctl,
-       nostop, notty, ucbsndpoll, ucbsndmmap,  ucbsndkqfilter,
+       nostop, notty, ucbsndpoll, ucbsndmmap,  nokqfilter,
 };
 
 int
@@ -666,14 +665,6 @@
        return (error);
 }
 
-int
-ucbsndkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (jdolecek): not supported -- why is poll? */
-       return (1);
-}
-
 paddr_t
 ucbsndmmap(dev_t dev, off_t off, int prot)
 {
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/mac68k/dev/grf_compat.c
--- a/sys/arch/mac68k/dev/grf_compat.c  Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/mac68k/dev/grf_compat.c  Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_compat.c,v 1.7.2.2 2002/10/10 18:33:46 jdolecek Exp $      */
+/*     $NetBSD: grf_compat.c,v 1.7.2.3 2002/10/10 22:00:12 jdolecek Exp $      */
 
 /*
  * Copyright (C) 1999 Scott Reynolds
@@ -62,11 +62,10 @@
 dev_type_ioctl(grfioctl);
 dev_type_poll(grfpoll);
 dev_type_mmap(grfmmap);
-dev_type_kqfilter(grfkqfilter);
 
 const struct cdevsw grf_cdevsw = {
        grfopen, grfclose, noread, nowrite, grfioctl,
-       nostop, notty, grfpoll, grfmmap, grfkqfilter,
+       nostop, notty, grfpoll, grfmmap, nokqfilter,
 };
 
 void   grf_scinit __P((struct grf_softc *, const char *, int));
@@ -312,14 +311,6 @@
        return EINVAL;
 }
 
-int
-grfkqfilter(dev_t dev, struct knote *kn)
-{
-
-       /* XXXLUKEM (thorpej): not supported -- why is poll? */
-       return (1);
-}
-
 paddr_t
 grfmmap(dev, off, prot)
        dev_t dev;
diff -r e63bb81b3754 -r 5e65da6e43af sys/arch/mac68k/obio/asc.c
--- a/sys/arch/mac68k/obio/asc.c        Thu Oct 10 21:34:02 2002 +0000
+++ b/sys/arch/mac68k/obio/asc.c        Thu Oct 10 22:00:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asc.c,v 1.39.4.3 2002/10/10 18:33:54 jdolecek Exp $    */
+/*     $NetBSD: asc.c,v 1.39.4.4 2002/10/10 22:00:11 jdolecek Exp $    */
 
 /*
  * Copyright (C) 1997 Scott Reynolds
@@ -119,11 +119,10 @@
 dev_type_ioctl(ascioctl);
 dev_type_poll(ascpoll);
 dev_type_mmap(ascmmap);
-dev_type_kqfilter(asckqfilter);
 
 const struct cdevsw asc_cdevsw = {
        ascopen, ascclose, ascread, ascwrite, ascioctl,



Home | Main Index | Thread Index | Old Index