kernel - Remove D_KQFILTER flag
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Aug 2010 18:58:29 +0000 (11:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Aug 2010 18:58:29 +0000 (11:58 -0700)
* The D_KQFILTER flag is no longer used.

49 files changed:
sys/bus/cam/scsi/scsi_target.c
sys/bus/firewire/fwdev.c
sys/bus/usb/usb.c
sys/dev/drm/drm_drv.c
sys/dev/misc/cmx/cmx.c
sys/dev/misc/dcons/dcons_os.c
sys/dev/misc/hotplug/hotplug.c
sys/dev/misc/kbd/kbd.c
sys/dev/misc/nmdm/nmdm.c
sys/dev/misc/psm/psm.c
sys/dev/misc/snp/snp.c
sys/dev/misc/spic/spic.c
sys/dev/misc/syscons/syscons.c
sys/dev/misc/syscons/sysmouse.c
sys/dev/raid/aac/aac.c
sys/dev/raid/vinum/vinum.c
sys/dev/serial/cy/cy.c
sys/dev/serial/dgb/dgm.c
sys/dev/serial/rc/rc.c
sys/dev/serial/rp/rp.c
sys/dev/serial/si/si.c
sys/dev/serial/sio/sio.c
sys/dev/serial/stl/stallion.c
sys/dev/serial/stli/istallion.c
sys/dev/usbmisc/ucom/ucom.c
sys/dev/usbmisc/ugen/ugen.c
sys/dev/usbmisc/uhid/uhid.c
sys/dev/usbmisc/ums/ums.c
sys/dev/usbmisc/uscanner/uscanner.c
sys/dev/video/cxm/cxm.c
sys/kern/kern_udev.c
sys/kern/subr_log.c
sys/kern/tty_cons.c
sys/kern/tty_pty.c
sys/kern/tty_tty.c
sys/net/bpf.c
sys/net/i4b/driver/i4b_rbch.c
sys/net/i4b/driver/i4b_tel.c
sys/net/i4b/layer4/i4b_i4bdrv.c
sys/net/tun/if_tun.c
sys/platform/pc32/acpica5/acpi_machdep.c
sys/platform/pc32/apm/apm.c
sys/platform/pc32/gnu/isa/dgb.c
sys/platform/pc32/isa/asc.c
sys/platform/pc64/apm/apm.c
sys/platform/pc64/isa/asc.c
sys/platform/vkernel/platform/console.c
sys/platform/vkernel64/platform/console.c
sys/sys/device.h

index 6156d46..eb8c210 100644 (file)
@@ -111,7 +111,7 @@ static struct filterops targwrite_filtops =
 
 #define TARG_CDEV_MAJOR 65
 static struct dev_ops targ_ops = {
-       { "targ", TARG_CDEV_MAJOR, D_KQFILTER },
+       { "targ", TARG_CDEV_MAJOR, 0 },
        .d_open = targopen,
        .d_close = targclose,
        .d_read = targread,
index 3aace2a..9363c1a 100644 (file)
@@ -88,7 +88,7 @@ static int fwfilt_write(struct knote *, long);
 
 struct dev_ops firewire_ops = 
 {
-       { "fw", CDEV_MAJOR, D_MEM | D_KQFILTER },
+       { "fw", CDEV_MAJOR, D_MEM },
        .d_open =       fw_open,
        .d_close =      fw_close,
        .d_read =       fw_read,
index fec9f72..185375b 100644 (file)
@@ -152,7 +152,7 @@ static void usbfilt_detach(struct knote *);
 static int usbfilt(struct knote *, long);
 
 struct dev_ops usb_ops = {
-       { "usb", USB_CDEV_MAJOR, D_KQFILTER },
+       { "usb", USB_CDEV_MAJOR, 0 },
        .d_open =       usbopen,
        .d_close =      usbclose,
        .d_read =       usbread,
index b05f1ce..e407084 100644 (file)
@@ -119,7 +119,7 @@ static drm_ioctl_desc_t               drm_ioctls[256] = {
 };
 
 static struct dev_ops drm_cdevsw = {
-       { "drm", 145, D_TRACKCLOSE | D_KQFILTER },
+       { "drm", 145, D_TRACKCLOSE },
        .d_open =       drm_open,
        .d_close =      drm_close,
        .d_read =       drm_read,
index bf19362..0d5c9fd 100644 (file)
@@ -140,7 +140,7 @@ static int cmx_filter_write(struct knote *, long);
 
 #define CDEV_MAJOR     185
 static struct dev_ops cmx_ops = {
-       { "cmx", CDEV_MAJOR, D_KQFILTER },
+       { "cmx", CDEV_MAJOR, 0 },
        .d_open =       cmx_open,
        .d_close =      cmx_close,
        .d_read =       cmx_read,
index 194902f..37c9f73 100644 (file)
@@ -94,7 +94,7 @@ static d_close_t      dcons_close;
 static d_ioctl_t       dcons_ioctl;
 
 static struct dev_ops dcons_ops = {
-       { "dcons", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "dcons", CDEV_MAJOR, D_TTY },
        .d_open =       dcons_open,
        .d_close =      dcons_close,
        .d_read =       ttyread,
index 5bda728..fae5d79 100644 (file)
@@ -46,7 +46,7 @@ static void hotplugfiltdetach(struct knote *);
 static int hotplugfilt(struct knote *, long);
 
 static struct dev_ops hotplug_ops = {
-       { "hotplug", CDEV_MAJOR, D_KQFILTER },
+       { "hotplug", CDEV_MAJOR, 0 },
        .d_open =       hotplugopen,
        .d_close =      hotplugclose,
        .d_read =       hotplugread,
index bf940e6..b7cee66 100644 (file)
@@ -502,7 +502,7 @@ static int genkbdfilter(struct knote *, long);
 #define CDEV_MAJOR     112
 
 static struct dev_ops kbd_ops = {
-       { "kbd", CDEV_MAJOR, D_KQFILTER },
+       { "kbd", CDEV_MAJOR, 0 },
        .d_open =       genkbdopen,
        .d_close =      genkbdclose,
        .d_read =       genkbdread,
index 5774269..075c96b 100644 (file)
@@ -69,7 +69,7 @@ static        d_ioctl_t       nmdmioctl;
 
 #define        CDEV_MAJOR      18
 static struct dev_ops nmdm_ops = {
-       { "pts", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "pts", CDEV_MAJOR, D_TTY },
        .d_open =       nmdmopen,
        .d_close =      nmdmclose,
        .d_read =       nmdmread,
index 6af8d4e..4a6ede1 100644 (file)
@@ -343,7 +343,7 @@ static struct isa_pnp_id psm_ids[] = {
 #define CDEV_MAJOR        21
 
 static struct dev_ops psm_ops = {
-       { PSM_DRIVER_NAME, CDEV_MAJOR, D_KQFILTER },
+       { PSM_DRIVER_NAME, CDEV_MAJOR, 0 },
        .d_open =       psmopen,
        .d_close =      psmclose,
        .d_read =       psmread,
index ffd425d..2dd93fa 100644 (file)
@@ -55,7 +55,7 @@ static int snpfilter_wr(struct knote *, long);
 
 #define CDEV_MAJOR 53
 static struct dev_ops snp_ops = {
-       { "snp", CDEV_MAJOR, D_KQFILTER },
+       { "snp", CDEV_MAJOR, 0 },
        .d_open =       snpopen,
        .d_close =      snpclose,
        .d_read =       snpread,
index 336ebe7..dba3b9c 100644 (file)
@@ -91,7 +91,7 @@ static void spicfilt_detach(struct knote *);
 static int spicfilt(struct knote *, long);
 
 static struct dev_ops spic_ops = {
-       { "spic", CDEV_MAJOR, D_KQFILTER },
+       { "spic", CDEV_MAJOR, 0 },
         .d_open =      spicopen,
         .d_close =     spicclose,
         .d_read =      spicread,
index 3f2b330..1a10cea 100644 (file)
@@ -234,7 +234,7 @@ static      d_ioctl_t       scioctl;
 static d_mmap_t        scmmap;
 
 static struct dev_ops sc_ops = {
-       { "sc", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "sc", CDEV_MAJOR, D_TTY },
        .d_open =       scopen,
        .d_close =      scclose,
        .d_read =       scread,
index 954f7f1..1b1cda7 100644 (file)
@@ -53,7 +53,7 @@ static d_close_t      smclose;
 static d_ioctl_t       smioctl;
 
 static struct dev_ops sm_ops = {
-       { "sysmouse", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "sysmouse", CDEV_MAJOR, D_TTY },
        .d_open =       smopen,
        .d_close =      smclose,
        .d_read =       ttyread,
index f8a850f..b8205d8 100644 (file)
@@ -229,7 +229,7 @@ static void         aac_ioctl_event(struct aac_softc *sc,
 #define AAC_CDEV_MAJOR 150
 
 static struct dev_ops aac_ops = {
-       { "aac", AAC_CDEV_MAJOR, D_KQFILTER },
+       { "aac", AAC_CDEV_MAJOR, 0 },
        .d_open =       aac_open,
        .d_close =      aac_close,
        .d_ioctl =      aac_ioctl,
index 20cfdeb..317f854 100644 (file)
@@ -59,7 +59,7 @@ extern struct mc malloced[];
 
 struct dev_ops vinum_ops =
 {
-       { "vinum", VINUM_CDEV_MAJOR, D_DISK | D_KQFILTER },
+       { "vinum", VINUM_CDEV_MAJOR, D_DISK },
        .d_open =       vinumopen,
        .d_close =      vinumclose,
        .d_read =       physread,
index 218ee5f..550da5e 100644 (file)
@@ -384,7 +384,7 @@ static      d_ioctl_t       sioioctl;
 
 #define        CDEV_MAJOR      48
 static struct dev_ops sio_ops = {
-       { driver_name, CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { driver_name, CDEV_MAJOR, D_TTY },
        .d_open =       sioopen,
        .d_close =      sioclose,
        .d_read =       ttyread,
index 38cea81..88912c2 100644 (file)
@@ -242,7 +242,7 @@ static devclass_t dgmdevclass;
 
 #define        CDEV_MAJOR      101
 static struct dev_ops dgm_ops = {
-       { "dgm", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "dgm", CDEV_MAJOR, D_TTY },
        .d_open =       dgmopen,
        .d_close =      dgmclose,
        .d_read =       ttyread,
index 58e452f..0e2cfe1 100644 (file)
@@ -92,7 +92,7 @@ static        d_ioctl_t       rcioctl;
 
 #define        CDEV_MAJOR      63
 static struct dev_ops rc_ops = {
-       { "rc", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "rc", CDEV_MAJOR, D_TTY },
        .d_open =       rcopen,
        .d_close =      rcclose,
        .d_read =       ttyread,
index f095f9e..d5f9f9d 100644 (file)
@@ -572,7 +572,7 @@ static      d_ioctl_t       rpioctl;
 
 #define        CDEV_MAJOR      81
 struct dev_ops rp_ops = {
-       { "rp", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "rp", CDEV_MAJOR, D_TTY },
        .d_open =       rpopen,
        .d_close =      rpclose,
        .d_read =       ttyread,
index 5daec9d..c55096c 100644 (file)
@@ -120,7 +120,7 @@ static      d_ioctl_t       siioctl;
 
 #define        CDEV_MAJOR      68
 static struct dev_ops si_ops = {
-       { "si", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "si", CDEV_MAJOR, D_TTY },
        .d_open =       siopen,
        .d_close =      siclose,
        .d_read =       ttyread,
index 4865894..d58860c 100644 (file)
@@ -251,7 +251,7 @@ static      d_ioctl_t       sioioctl;
 
 #define        CDEV_MAJOR      28
 static struct dev_ops sio_ops = {
-       { driver_name, CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { driver_name, CDEV_MAJOR, D_TTY },
        .d_open =       sioopen,
        .d_close =      sioclose,
        .d_read =       sioread,
index b6e6183..0c27445 100644 (file)
@@ -750,7 +750,7 @@ COMPAT_PCI_DRIVER (stlpci, stlpcidriver);
 
 #define        CDEV_MAJOR      72
 static struct dev_ops stl_ops = {
-       { "stl", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "stl", CDEV_MAJOR, D_TTY },
        .d_open =       stlopen,
        .d_close =      stlclose,
        .d_read =       ttyread,
index 1557ec4..da88508 100644 (file)
@@ -633,7 +633,7 @@ struct isa_driver   stlidriver = {
 
 #define        CDEV_MAJOR      75
 static struct dev_ops stli_ops = {
-       { stli_drvname, CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { stli_drvname, CDEV_MAJOR, D_TTY },
        .d_open =       stliopen,
        .d_close =      stliclose,
        .d_read =       stliread,
index d3644d2..bcffabf 100644 (file)
@@ -119,7 +119,7 @@ static d_ioctl_t ucomioctl;
 #define UCOM_CDEV_MAJOR  138
 
 static struct dev_ops ucom_ops = {
-       { "ucom", UCOM_CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "ucom", UCOM_CDEV_MAJOR, D_TTY },
        .d_open =       ucomopen,
        .d_close =      ucomclose,
        .d_read =       ucomread,
index 425dd1e..3922b58 100644 (file)
@@ -147,7 +147,7 @@ static int ugen_filt_write(struct knote *, long);
 #define UGEN_CDEV_MAJOR        114
 
 static struct dev_ops ugen_ops = {
-       { "ugen", UGEN_CDEV_MAJOR, D_KQFILTER },
+       { "ugen", UGEN_CDEV_MAJOR, 0 },
        .d_open =       ugenopen,
        .d_close =      ugenclose,
        .d_read =       ugenread,
index bd9693a..011decf 100644 (file)
@@ -139,7 +139,7 @@ static int uhidfilt_write(struct knote *, long);
 #define                UHID_CDEV_MAJOR 122
 
 static struct dev_ops uhid_ops = {
-       { "uhid", UHID_CDEV_MAJOR, D_KQFILTER },
+       { "uhid", UHID_CDEV_MAJOR, 0 },
        .d_open =       uhidopen,
        .d_close =      uhidclose,
        .d_read =       uhidread,
index bfec24d..ee2f775 100644 (file)
@@ -146,7 +146,7 @@ static int ums_filt(struct knote *, long);
 #define UMS_CDEV_MAJOR 111
 
 static struct dev_ops ums_ops = {
-       { "ums", UMS_CDEV_MAJOR, D_KQFILTER },
+       { "ums", UMS_CDEV_MAJOR, 0 },
        .d_open =       ums_open,
        .d_close =      ums_close,
        .d_read =       ums_read,
index 2981b12..87cf777 100644 (file)
@@ -259,7 +259,7 @@ d_kqfilter_t uscannerkqfilter;
 #define USCANNER_CDEV_MAJOR    156
 
 static struct dev_ops uscanner_ops = {
-       { "uscanner", USCANNER_CDEV_MAJOR, D_KQFILTER },
+       { "uscanner", USCANNER_CDEV_MAJOR, 0 },
        .d_open =       uscanneropen,
        .d_close =      uscannerclose,
        .d_read =       uscannerread,
index a66e756..e2064e6 100644 (file)
@@ -128,7 +128,7 @@ static int cxm_filter(struct knote *, long);
 #define CDEV_MAJOR 93
 
 static struct dev_ops cxm_ops = {
-       { "cxm", CDEV_MAJOR, D_KQFILTER },
+       { "cxm", CDEV_MAJOR, 0 },
        .d_open =       cxm_open,
        .d_close =      cxm_close,
        .d_read =       cxm_read,
index 8b918f1..f79b0da 100644 (file)
@@ -102,7 +102,7 @@ struct udev_softc {
 } udevctx;
 
 static struct dev_ops udev_dev_ops = {
-       { "udev", 0, D_KQFILTER },
+       { "udev", 0, 0 },
        .d_open = udev_dev_open,
        .d_close = udev_dev_close,
        .d_read = udev_dev_read,
index 6926e44..b98b2b9 100644 (file)
@@ -70,7 +70,7 @@ static        int  logfiltread(struct knote *kn, long hint);
 
 #define CDEV_MAJOR 7
 static struct dev_ops log_ops = {
-       { "log", CDEV_MAJOR, D_KQFILTER },
+       { "log", CDEV_MAJOR, 0 },
        .d_open =       logopen,
        .d_close =      logclose,
        .d_read =       logread,
index 3c6c4dd..d1cd5e4 100644 (file)
@@ -72,7 +72,7 @@ static int cnintercept(struct dev_generic_args *ap);
 
 #define        CDEV_MAJOR      0
 static struct dev_ops cn_ops = {
-       { "console", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "console", CDEV_MAJOR, D_TTY },
        .d_open =       cnopen,
        .d_close =      cnclose,
        .d_read =       cnread,
@@ -82,7 +82,7 @@ static struct dev_ops cn_ops = {
 };
 
 static struct dev_ops cn_iops = {
-       { "intercept", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "intercept", CDEV_MAJOR, D_TTY },
        .d_default =    cnintercept
 };
 
index 163dfc3..7dbd218 100644 (file)
@@ -94,7 +94,7 @@ static        d_clone_t       ptyclone;
 static int     pty_debug_level = 0;
 
 static struct dev_ops pts98_ops = {
-       { "pts98", 0, D_TTY | D_KQFILTER },
+       { "pts98", 0, D_TTY },
        .d_open =       ptsopen,
        .d_close =      ptsclose,
        .d_read =       ptsread,
@@ -105,7 +105,7 @@ static struct dev_ops pts98_ops = {
 };
 
 static struct dev_ops ptc98_ops = {
-       { "ptc98", 0, D_TTY | D_KQFILTER | D_MASTER },
+       { "ptc98", 0, D_TTY | D_MASTER },
        .d_open =       ptcopen,
        .d_close =      ptcclose,
        .d_read =       ptcread,
@@ -118,7 +118,7 @@ static struct dev_ops ptc98_ops = {
 
 #define        CDEV_MAJOR_S    5
 static struct dev_ops pts_ops = {
-       { "pts", CDEV_MAJOR_S, D_TTY | D_KQFILTER },
+       { "pts", CDEV_MAJOR_S, D_TTY },
        .d_open =       ptsopen,
        .d_close =      ptsclose,
        .d_read =       ptsread,
@@ -130,7 +130,7 @@ static struct dev_ops pts_ops = {
 
 #define        CDEV_MAJOR_C    6
 static struct dev_ops ptc_ops = {
-       { "ptc", CDEV_MAJOR_C, D_TTY | D_KQFILTER | D_MASTER },
+       { "ptc", CDEV_MAJOR_C, D_TTY | D_MASTER },
        .d_open =       ptcopen,
        .d_close =      ptcclose,
        .d_read =       ptcread,
index edfe21c..f0976b9 100644 (file)
@@ -66,7 +66,7 @@ static int cttyfilt_write(struct knote *, long);
 #define        CDEV_MAJOR      1
 /* Don't make this static, since fdesc_vnops uses it. */
 struct dev_ops ctty_ops = {
-       { "ctty", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "ctty", CDEV_MAJOR, D_TTY },
        .d_open =       cttyopen,
        .d_close =      cttyclose,
        .d_read =       cttyread,
index 0e3234e..afc885e 100644 (file)
@@ -141,7 +141,7 @@ static d_kqfilter_t bpfkqfilter;
 
 #define CDEV_MAJOR 23
 static struct dev_ops bpf_ops = {
-       { "bpf", CDEV_MAJOR, D_KQFILTER },
+       { "bpf", CDEV_MAJOR, 0 },
        .d_open =       bpfopen,
        .d_close =      bpfclose,
        .d_read =       bpfread,
index c9373d9..c4ec9cf 100644 (file)
@@ -127,7 +127,7 @@ PDEVSTATIC int i4brbchkfilt_write(struct knote *, long);
 #define CDEV_MAJOR 57
 
 static struct dev_ops i4brbch_ops = {
-       { "i4brbch", CDEV_MAJOR, D_KQFILTER },
+       { "i4brbch", CDEV_MAJOR, 0 },
        .d_open =       i4brbchopen,
        .d_close =      i4brbchclose,
        .d_read =       i4brbchread,
index eff20d3..2b1638d 100644 (file)
@@ -150,7 +150,7 @@ PDEVSTATIC int i4btelfilt_write(struct knote *, long);
 #define CDEV_MAJOR 56
 
 static struct dev_ops i4btel_ops = {
-       { "i4btel", CDEV_MAJOR, D_KQFILTER },
+       { "i4btel", CDEV_MAJOR, 0 },
        .d_open =       i4btelopen,
        .d_close =      i4btelclose,
        .d_read =       i4btelread,
index 2b22d64..689140c 100644 (file)
@@ -94,7 +94,7 @@ PDEVSTATIC int i4bkqfilt_write(struct knote *, long);
 #define CDEV_MAJOR 60
 
 static struct dev_ops i4b_ops = {
-       { "i4b", CDEV_MAJOR, D_KQFILTER },
+       { "i4b", CDEV_MAJOR, 0 },
        .d_open =       i4bopen,
        .d_close =      i4bclose,
        .d_read =       i4bread,
index 59e7812..6d20a05 100644 (file)
@@ -99,7 +99,7 @@ DEVFS_DECLARE_CLONE_BITMAP(tun);
 
 #define CDEV_MAJOR 52
 static struct dev_ops tun_ops = {
-       { "tun", CDEV_MAJOR, D_KQFILTER },
+       { "tun", CDEV_MAJOR, 0 },
        .d_open =       tunopen,
        .d_close =      tunclose,
        .d_read =       tunread,
index bf2ef13..6985f1d 100644 (file)
@@ -70,7 +70,7 @@ static d_kqfilter_t apmkqfilter;
 
 #define CDEV_MAJOR 39
 static struct dev_ops apm_ops = {
-       { "apm", CDEV_MAJOR, D_KQFILTER },
+       { "apm", CDEV_MAJOR, 0 },
         .d_open = apmopen,
         .d_close = apmclose,
        .d_write = apmwrite,
index 699852f..e4d9421 100644 (file)
@@ -89,7 +89,7 @@ static int apmfilter_write(struct knote *, long);
 
 #define CDEV_MAJOR 39
 static struct dev_ops apm_ops = {
-       { "apm", CDEV_MAJOR, D_KQFILTER },
+       { "apm", CDEV_MAJOR, 0 },
        .d_open =       apmopen,
        .d_close =      apmclose,
        .d_write =      apmwrite,
index 9c329d2..18a704e 100644 (file)
@@ -218,7 +218,7 @@ static      d_ioctl_t       dgbioctl;
 static struct cdevsw dgb_cdevsw = {
        /* name */      "dgb",
        /* maj */       CDEV_MAJOR,
-       /* flags */     D_TTY | D_KQFILTER,
+       /* flags */     D_TTY,
        /* port */      NULL,
        /* clone */     NULL,
 
index 2ff96f1..f64614b 100644 (file)
@@ -192,7 +192,7 @@ static int ascfilter(struct knote *kn, long hint);
 #define CDEV_MAJOR 71
 
 static struct dev_ops asc_ops = {
-       { "asc", CDEV_MAJOR, D_KQFILTER },
+       { "asc", CDEV_MAJOR, 0 },
        .d_open =       ascopen,
        .d_close =      ascclose,
        .d_read =       ascread,
index d636ccc..5d2e622 100644 (file)
@@ -89,7 +89,7 @@ static int apmfilter_write(struct knote *, long);
 
 #define CDEV_MAJOR 39
 static struct dev_ops apm_ops = {
-       { "apm", CDEV_MAJOR, D_KQFILTER },
+       { "apm", CDEV_MAJOR, 0 },
        .d_open =       apmopen,
        .d_close =      apmclose,
        .d_write =      apmwrite,
index fac7ad8..d36c34e 100644 (file)
@@ -191,7 +191,7 @@ static int ascfilter(struct knote *kn, long hint);
 #define CDEV_MAJOR 71
 
 static struct dev_ops asc_ops = {
-       { "asc", CDEV_MAJOR, D_KQFILTER },
+       { "asc", CDEV_MAJOR, 0 },
        .d_open =       ascopen,
        .d_close =      ascclose,
        .d_read =       ascread,
index 54de5a9..632f4d2 100644 (file)
@@ -82,7 +82,7 @@ static d_close_t        vcons_close;
 static d_ioctl_t        vcons_ioctl;
 
 static struct dev_ops vcons_ops = {
-       { "vcons", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "vcons", CDEV_MAJOR, D_TTY },
        .d_open =       vcons_open,
        .d_close =      vcons_close,
        .d_read =       ttyread,
index 353bd51..8e0abc1 100644 (file)
@@ -82,7 +82,7 @@ static d_close_t        vcons_close;
 static d_ioctl_t        vcons_ioctl;
 
 static struct dev_ops vcons_ops = {
-       { "vcons", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "vcons", CDEV_MAJOR, D_TTY },
        .d_open =       vcons_open,
        .d_close =      vcons_close,
        .d_read =       ttyread,
index cba4774..45f4a2f 100644 (file)
@@ -249,7 +249,7 @@ struct dev_ops {
 #define D_CANFREE      0x00040000      /* can free blocks */
 #define D_TRACKCLOSE   0x00080000      /* track all closes */
 #define D_MASTER       0x00100000      /* used by pty/tty code */
-#define D_KQFILTER     0x00200000      /* has kqfilter entry */
+#define D_UNUSED200000 0x00200000
 #define D_MPSAFE       0x00400000      /* all dev_d*() calls are MPSAFE */
 
 /*