From ad925439e08646e188eb1c0e0be355f0685c8739 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 21 Feb 2004 21:10:55 +0000 Subject: Device megapatch 4/6: Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. --- sys/kern/tty_cons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/tty_cons.c') diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 272cc4a..5791978 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -78,6 +78,7 @@ static d_kqfilter_t cnkqfilter; * XXX: kern_conf.c knows what to do when it sees 256. */ static struct cdevsw cn_cdevsw = { + .d_version = D_VERSION, .d_open = cnopen, .d_close = cnclose, .d_read = cnread, @@ -86,7 +87,7 @@ static struct cdevsw cn_cdevsw = { .d_poll = cnpoll, .d_name = "console", .d_maj = 256, - .d_flags = D_TTY, + .d_flags = D_TTY | D_NEEDGIANT, .d_kqfilter = cnkqfilter, }; -- cgit v1.1