1 Index: linux-2.6.30-rc6/include/linux/vt.h
2 ===================================================================
3 --- linux-2.6.30-rc6.orig/include/linux/vt.h 2009-05-16 06:12:57.000000000 +0200
4 +++ linux-2.6.30-rc6/include/linux/vt.h 2009-05-18 19:08:35.000000000 +0200
8 #define MIN_NR_CONSOLES 1 /* must be at least 1 */
9 +#if (CONFIG_NR_TTY_DEVICES < 4)
11 +#define MAX_NR_CONSOLES 4 /* serial lines start at 64 */
12 +#define MAX_NR_USER_CONSOLES 4 /* must be root to allocate above this */
13 +#elif (CONFIG_NR_TTY_DEVICES > 63)
15 #define MAX_NR_CONSOLES 63 /* serial lines start at 64 */
16 #define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */
18 +/* They chose a sensible number */
19 +#define MAX_NR_CONSOLES CONFIG_NR_TTY_DEVICES
20 +#define MAX_NR_USER_CONSOLES CONFIG_NR_TTY_DEVICES
22 /* Note: the ioctl VT_GETSTATE does not work for
23 consoles 16 and higher (since it returns a short) */
25 Index: linux-2.6.30-rc6/drivers/char/Kconfig
26 ===================================================================
27 --- linux-2.6.30-rc6.orig/drivers/char/Kconfig 2009-05-18 19:07:07.000000000 +0200
28 +++ linux-2.6.30-rc6/drivers/char/Kconfig 2009-05-18 19:08:35.000000000 +0200
33 +config NR_TTY_DEVICES
34 + int "Maximum tty device number"
38 + This is the highest numbered device created in /dev. You will actually have
39 + NR_TTY_DEVICES+1 devices in /dev. The default is 63, which will result in
40 + 64 /dev entries. The lowest number you can set is 11, anything below that,
41 + and it will default to 11. 63 is also the upper limit so we don't overrun
42 + the serial consoles.
47 depends on VT && !S390 && !UML