--- drivers/char/Kconfig | 14 ++++++++++++++ include/linux/tty.h | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) Index: linux-2.6.17-rc3-no1/drivers/char/Kconfig =================================================================== --- linux-2.6.17-rc3-no1.orig/drivers/char/Kconfig +++ linux-2.6.17-rc3-no1/drivers/char/Kconfig @@ -57,6 +57,20 @@ config VT_CONSOLE If unsure, say Y. +config NR_TTY_DEVICES + int "Maximum tty device number" + depends on VT + range 12 63 + default 63 + ---help--- + This option is used to change the number of tty devices in /dev. + The default value is 63. The lowest number you can set is 12, + 63 is also the upper limit so we don't overrun the serial + consoles. + + If unsure, say 63. + + config HW_CONSOLE bool depends on VT && !S390 && !UML Index: linux-2.6.17-rc3-no1/include/linux/tty.h =================================================================== --- linux-2.6.17-rc3-no1.orig/include/linux/tty.h +++ linux-2.6.17-rc3-no1/include/linux/tty.h @@ -10,8 +10,9 @@ * resizing). */ #define MIN_NR_CONSOLES 1 /* must be at least 1 */ -#define MAX_NR_CONSOLES 63 /* serial lines start at 64 */ -#define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */ +/* Value MUST be at least 11 and must never be higher then 63 */ +#define MAX_NR_CONSOLES CONFIG_NR_TTY_DEVICES +#define MAX_NR_USER_CONSOLES CONFIG_NR_TTY_DEVICES /* Note: the ioctl VT_GETSTATE does not work for consoles 16 and higher (since it returns a short) */