Skip to contentSkip to conversation

add console_use_vt check

PATCH New Gerd Knorr 1 participant 1 message Feb 24, 2005 Char and misc drivers

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 add console_use_vt check

Hi,

Here is a trivial one-liner, one more place needs a check whenever console_use_vt is set or not. Trapped into that while trying to make the vt subsystem switchable in user mode linux as well.

cheers,

Gerd

drivers/char/tty_io.c +1 -1
Index: linux-2.6.10/drivers/char/tty_io.c
===================================================================
@@ -1790,7 +1790,7 @@ retry_open:
 		goto got_driver;
 	}
 #ifdef CONFIG_VT
-	if (device == MKDEV(TTY_MAJOR,0)) {
+	if (console_use_vt && device == MKDEV(TTY_MAJOR,0)) {
 		extern int fg_console;
 		extern struct tty_driver *console_driver;
 		driver = console_driver;

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click