From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Smirl Date: Thu, 22 Jan 2004 00:05:47 +0000 Subject: Re: tty devices Message-Id: <20040122000547.47529.qmail@web14917.mail.yahoo.com> List-Id: References: <20040117195133.90850.qmail@web14901.mail.yahoo.com> In-Reply-To: <20040117195133.90850.qmail@web14901.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg is right, this is not a udev problem it is a kernel problem. The kernel needs to be fixed to not create all of those devices. One solution might be for the kernel to start off with two tty devices. Then as each tty device is opened, the kernel driver would create another one. Any how, the place to fix this is in the kernel tty driver. --- Greg KH wrote: > On Wed, Jan 21, 2004 at 07:23:46PM +0200, Bob Barry wrote: > > On Sat, 17 Jan 2004 11:51, Jon Smirl wrote: > > > Why do I have 60 tty devices under udev; is this controllable? > > > What would I use the 60 tty devices for? > > > > I asked the same thing of Martin Schlemmer (the gentoo udev packager) : > > > > >> I have several times pruned the tty's to tty0-tty6 and restarted. I have > verified that > > >> dev-state/devices.bz2 contains only tty0-tty6, but hotplug/udev always > re-creates > > >> tty's through tty63. Is that good or correct? Is it configurable? > > > > He replied: > > > > > That is what is supported by the kernel, so is created. You could > > > change the tty stuff in /etc/udev/udev.rules to rather call a script, > > > and only handle what you want ... > > > > Like Jon, I feel it's contrary to udev's charter. Is it really right? > > "udev's charter"? Huh? > > The kernel is creating all of those tty devices. It is exporting that > information to userspace. If udev it told to, it will create all of > those device nodes. If you write a rule to ignore them, udev will > ignore them. > > What's the problem here? > > And are you _sure_ you don't need those nodes? Some programs expect to > see them (screen, expect, etc.) > > thanks, > > greg k-h > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > Linux-hotplug-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel ==Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel