lkml.org 
[lkml]   [1998]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Out of ptys??
Date
o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s (david parsons) writes:
> Nicholas J. Leon <nicholas@binary9.net> wrote:
> >The major number from pty's has changed from 4 to 3 & 2 in 2.1.115.
>
> I don't know who did this, but, please, change the major numbers
> back; having to manually redo all the /dev entries for ptys
> every time you toggle the system between a <2.1.115 and >=2.1.115
> kernel will get old really fast.

Quick piece of kernel history. There used to be a limit of 64 pty pairs,
because they were some of the devices that used major 4. This was a
limitation of a very early kernel.

When Ted Ts'o revamped the tty layers (which was in 1.3.39), he added
support for new pty master and slaves which used majors 3 and 2. This
allowed for 256 pty pairs. He maintained _compatability_, and allowed
the old 64 pty pairs to remain working (see old_pty_driver in pty.c).

The change in 2.1.115 is the removal of the _compatability_ for the 1.2
style devices. If you create your pty pairs using the new major numbers,
it will work for all of 2.0 and 2.1.

Unless you are planning on skipping back to kernel 1.2.13, there is no
need to recreate the traditional pty devices.

--
`O O' | Home: Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/
// ^ \\ | Work: Nick.Holloway@parallax.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.197 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site