diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-02-15 16:34:11 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-02-15 16:34:11 +0000 |
commit | 11781a7431fab609cd00058a63ac09ccddb16854 (patch) | |
tree | ee46dbf40488c941cf17b05e69bfe21e4f2d7128 /sys/dev | |
parent | 5655168b87e22a331c5fc3b603901647ff90b2e4 (diff) | |
download | FreeBSD-src-11781a7431fab609cd00058a63ac09ccddb16854.zip FreeBSD-src-11781a7431fab609cd00058a63ac09ccddb16854.tar.gz |
Extend kqueue down to the device layer.
Backwards compatible approach suggested by: peter
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cy/cy.c | 5 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 5 | ||||
-rw-r--r-- | sys/dev/dgb/dgb.c | 5 | ||||
-rw-r--r-- | sys/dev/dgb/dgm.c | 5 | ||||
-rw-r--r-- | sys/dev/rc/rc.c | 5 | ||||
-rw-r--r-- | sys/dev/si/si.c | 5 | ||||
-rw-r--r-- | sys/dev/sio/sio.c | 5 | ||||
-rw-r--r-- | sys/dev/streams/streams.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/umodem.c | 5 |
9 files changed, 26 insertions, 17 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 9a56e2d..7d7671d 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -405,8 +405,9 @@ static struct cdevsw sio_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int comconsole = -1; diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index 9a56e2d..7d7671d 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -405,8 +405,9 @@ static struct cdevsw sio_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int comconsole = -1; diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index 84e8102..818aad7 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -255,8 +255,9 @@ static struct cdevsw dgb_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static speed_t dgbdefaultrate = TTYDEF_SPEED; diff --git a/sys/dev/dgb/dgm.c b/sys/dev/dgb/dgm.c index e6eef8f..0e0bcfe 100644 --- a/sys/dev/dgb/dgm.c +++ b/sys/dev/dgb/dgm.c @@ -258,8 +258,9 @@ static struct cdevsw dgm_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static speed_t dgmdefaultrate = TTYDEF_SPEED; diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index a7e5ecb..6c1ca5d 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -107,8 +107,9 @@ static struct cdevsw rc_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; /* Per-board structure */ diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index cc61a17..753849b 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -129,8 +129,9 @@ static struct cdevsw si_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int si_Nports; diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index ee3d4f1..d8f02c9 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -388,8 +388,9 @@ static struct cdevsw sio_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; int comconsole = -1; diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index 1d779f4..8f279da 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -99,7 +99,8 @@ dev_t dt_ptm, dt_arp, dt_icmp, dt_ip, dt_tcp, dt_udp, dt_rawip, dt_unix_dgram, dt_unix_stream, dt_unix_ord_stream; static struct fileops svr4_netops = { - soo_read, soo_write, soo_ioctl, soo_poll, soo_stat, svr4_soo_close + soo_read, soo_write, soo_ioctl, soo_poll, sokqfilter, + soo_stat, svr4_soo_close }; #define CDEV_MAJOR 103 diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index 3305eee..b715c5e 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -171,8 +171,9 @@ static struct cdevsw umodem_cdevsw = { /* maj */ UMODEM_CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; #endif |