Re: maximum number of master/slave pty pairs under Linux.

Theodore Y. Ts'o (tytso@MIT.EDU)
Wed, 18 Jun 1997 21:29:15 -0400


Date: 18 Jun 97 04:39:52 EDT
From: <TIGRANA@DSTIUK.CCMAIL.CompuServe.COM>

Is there any way to allocate more than 256 master/slave
pseudo-terminal pairs under Linux? Under DYNIX/ptx it is a simple
matter of relinking the kernel and surely Linux should be able to
beat any commercial OS in ANY respect?

There is no simple way at the moment, because we're limited by the size
of the minor number (i.e., 8 bits). We need to finish expanding dev_t
to be larger than 16 bits, and then it will be easy.

You could very easily modify pty.c to define a new set of major numbers
to handle another 256 pty's, but that solution is really ugly, and Linus
has already decreed that this won't make it into the mainline kernel.

- Ted