Re: [PATCH] char/tty_io: fix legacy pty name when more than 256 ptydevices are requested
From: Alan Cox
Date: Thu Sep 10 2009 - 10:06:28 EST
> * The remaining nibbles are represented by one of 0123456789abcdef letters,
> indicating the 1st through 16th nibble value, starting from the most
> significative nibble to the least significative nibble, excluding the
> second nibble (that were already represented).
This is a real step back.
It now wastes all the tty[e-p]%d namespace. ttyp%d for > 255 at least
only uses one for this irrelevant area.
I actually have another proposal having reviewed the user space code.
Limit the BSD ptys to 256. Nothing uses them, the C library routines for
their allocation would need glibc modifying (which takes about five years
for a tty change it seems anyway). It's basically a huge amount of work
for no purpose at all.
So lets limit BSD ptys (unused anyway) to 256 and be done with it.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/