Subject: Re: sysctl & number of ptys
To: David Brownlee <D.K.Brownlee@city.ac.uk>
From: Chris G Demetriou <Chris_G_Demetriou@lagavulin.pdl.cs.cmu.edu>
List: tech-misc
Date: 06/22/1995 00:19:30
> 	Is there an easy way of getting the number of configured in ptys
> 	at runtime? (Other than checking the config file :)
> 
> 	Possibly it should be via sysctl?

Well, actually, one shouldn't have to configure a specific number of PTYs...

But that's theory, not reality, right now.  8-)


No, there's no easy way to do this right now (i don't think).  a
sysctl option isn't as 'right' as you might think... e.g. some systems
might not _include_ ptys.  8-)


> 	If there is it might be nice to come up with an option for MAKEDEV
> 	so it works out how many ptys it needs automatically - or if given
> 	a certain option...

I'm not sure about the merit of this idea; the number of PTYs needed
in /dev isn't necessarily associated with the number of PTYs in the
currently running kernel, and it seems wrong to assume that it is...

If one were going to do this, one would also be morally obligated to
do it for every other device type with a non-fixed number of /dev
entries...  right now, it's sort-of assumed that the admin will 'do
the right thing' when they add devices to a kernel config file.



chris