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] name the xencons driver

To: Keir.Fraser@xxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] name the xencons driver
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Tue, 13 Dec 2005 15:16:33 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 13 Dec 2005 22:16:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: LOSL
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Keir,

  Here's one other trivial patch for the xen console that I noticed.
The current driver doesn't set it's driver_name field.  This results in
an "unknown" driver when you cat /proc/tty/drivers.  We might was well
give it a name.  I have no attachment to "xencons" if you'd like to
change it to something else.  Thanks,

        Alex


Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---

diff -r 0255f48b757f linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c        Sun Dec  4 
19:12:00 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c        Tue Dec 13 
15:05:01 2005
@@ -628,6 +630,7 @@
        if (xencons_driver == NULL)
                return -ENOMEM;
 
+       DRV(xencons_driver)->driver_name     = "xencons";
        DRV(xencons_driver)->major           = TTY_MAJOR;
        DRV(xencons_driver)->type            = TTY_DRIVER_TYPE_SERIAL;
        DRV(xencons_driver)->subtype         = SERIAL_TYPE_NORMAL;



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] name the xencons driver, Alex Williamson <=