[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Most drivers have their own range of devices they claim and the tty



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID a7bb7b704071d5c231edd51f71069025fdbd6b9b
# Parent  455b2b93542c728b88aba30de3e95c7d06d20ade
Most drivers have their own range of devices they claim and the tty
index is identical to the device file index.  For us, the tty index is
always zero regardless of the device file index.

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

diff -r 455b2b93542c -r a7bb7b704071 
linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c        Tue Dec 13 
18:20:29 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c        Tue Dec 13 
21:05:18 2005
@@ -168,7 +168,7 @@
 
 static struct tty_driver *kcons_device(struct console *c, int *index)
 {
-       *index = c->index;
+       *index = 0;
        return xencons_driver;
 }
 
@@ -212,6 +212,9 @@
        default:
                return __RETCODE;
        }
+
+       /* We only bind to one device index (-1 means all indexes). */
+       kcons_info.index = xc_num;
 
        wbuf = alloc_bootmem(wbuf_size);
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.