WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch] add console_use_vt check

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] add console_use_vt check
From: Gerd Knorr <kraxel@xxxxxxxxxxx>
Date: Thu, 24 Feb 2005 11:20:49 +0100
Delivery-date: Thu, 24 Feb 2005 10:26:19 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
  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

Index: linux-2.6.10/drivers/char/tty_io.c
===================================================================
--- linux-2.6.10.orig/drivers/char/tty_io.c     2005-02-21 12:58:37.000000000 
+0100
+++ linux-2.6.10/drivers/char/tty_io.c  2005-02-21 15:09:37.000000000 +0100
@@ -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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] add console_use_vt check, Gerd Knorr <=