Re: what's the rationale for the /dev/pts mount point?

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

 



On Wed, 24 Dec 2008 06:39:08 -0500 (EST) "Robert P. J. Day"
<rpjday@xxxxxxxxxxxxxx> wrote:

> On Wed, 24 Dec 2008, Erik Mouw wrote:
> 
> > On Tue, 23 Dec 2008 17:56:00 -0500 (EST) "Robert P. J. Day"
> > <rpjday@xxxxxxxxxxxxxx> wrote:
> > >   after i mounted /dev/pts (rw), ssh connections started to work.
> > > is this why /dev/pts was developed?  to work around RO /dev
> > > directories? or was there some other reason?
> >
> > No, that's just coincidence. The main reason is that in the old days
> > the number of PTYs were limited (to 256, IIRC) so you could only
> > have a limited number of remote sessions and xterms on your machine.
> > /dev/pts removed that limit.
> 
>   i've never been in the situation of running out of ptys but are you
> saying that if i don't mount devpts and use /dev/pts as a regular
> directory, i will hit a hard limit of 256 special files that i
> wouldn't hit using the mount?

No, you have to use Legacy (BSD) PTY support for that: make menuconfig
--> Drivers --> Character devices -->  Legacy (BSD) PTY support. With
that, you have to use /dev/ptyxx and /dev/ttyxx and you can specify the
maximum number of PTYs to use. Of course you have to create those
devices in /dev and like you already find out that needs a
writeable /dev directory (you could of course use ramfs for /dev and
populate that at boot time).


Erik

-- 
Erik Mouw -- mouw@xxxxxxxxxxxx
GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0  4A58 FCF9 551C 9B48 B68D

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux