summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.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/vfs_default.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/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index 7626228..41c4040 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -343,6 +343,7 @@ vop_nopoll(ap)
* determining reliably whether or not the extended
* functionality is present without hard-coding knowledge
* of specific filesystem implementations.
+ * Stay in sync with kern_conf.c::no_poll().
*/
if (ap->a_events & ~POLLSTANDARD)
return (POLLNVAL);
OpenPOWER on IntegriCloud