aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/linedisc.h
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/sys/linedisc.h
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/sys/linedisc.h')
-rw-r--r--sys/sys/linedisc.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h
index 14facbae41de..c18d5b40baf0 100644
--- a/sys/sys/linedisc.h
+++ b/sys/sys/linedisc.h
@@ -258,23 +258,11 @@ void ldisc_deregister(int);
#endif /* _KERNEL */
#ifdef _KERNEL
-d_read_t noread;
-d_write_t nowrite;
-d_ioctl_t noioctl;
-d_mmap_t nommap;
-d_kqfilter_t nokqfilter;
-#define nostrategy ((d_strategy_t *)NULL)
-#define nopoll seltrue
-
-dumper_t nodump;
#define NUMCDEVSW 256
#define MAJOR_AUTO 0 /* XXX: Not GM */
-d_open_t nullopen;
-d_close_t nullclose;
-
l_ioctl_t l_nullioctl;
l_read_t l_noread;
l_write_t l_nowrite;