summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-27 12:53:33 +0000
committerphk <phk@FreeBSD.org>2003-09-27 12:53:33 +0000
commit74c6dfd454b675b7406058908d5bdcdcaa40be38 (patch)
treed35098505dc2abe8daaea32578d8608b23fc7230 /sys/kern/sys_generic.c
parentd92d95ded7b73abc510fdb77edc94e7311d3b8ce (diff)
downloadFreeBSD-src-74c6dfd454b675b7406058908d5bdcdcaa40be38.zip
FreeBSD-src-74c6dfd454b675b7406058908d5bdcdcaa40be38.tar.gz
Introduce no_poll() default method for device drivers. Have it
do exactly the same as vop_nopoll() for consistency and put a comment in the two pointing at each other. Retire seltrue() in favour of no_poll(). Create private default functions in kern_conf.c instead of public ones. Change default strategy to return the bio with ENODEV instead of doing nothing which would lead the bio stranded. Retire public nullopen() and nullclose() as well as the entire band of public no{read,write,ioctl,mmap,kqfilter,strategy,poll,dump} funtions, they are the default actions now. Move the final two trivial functions from subr_xxx.c to kern_conf.c and retire the now empty subr_xxx.c
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index eec9c76..221ec00 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1132,17 +1132,6 @@ clear_selinfo_list(td)
TAILQ_INIT(&td->td_selq);
}
-/*ARGSUSED*/
-int
-seltrue(dev, events, td)
- dev_t dev;
- int events;
- struct thread *td;
-{
-
- return (events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
-}
-
/*
* Record a select request.
*/
OpenPOWER on IntegriCloud