aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-09-27 12:53:33 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-09-27 12:53:33 +0000
commitb294143142735642a65357a5c4ec0a7b6184bf03 (patch)
treed35098505dc2abe8daaea32578d8608b23fc7230 /sys/kern/vfs_default.c
parent41cbb0b237d9e62e34b8f43ebeb4c3fac0730ca7 (diff)
downloadsrc-b294143142735642a65357a5c4ec0a7b6184bf03.tar.gz
src-b294143142735642a65357a5c4ec0a7b6184bf03.zip
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
Notes
Notes: svn path=/head/; revision=120514
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 76262289012e..41c40403fcb2 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);