From: Jon Smirl Date: Sat, 21 Feb 2004 00:53:40 +0000 Subject: Re: possible to mask nodes from being created ? Message-Id: <20040221005340.25638.qmail@web14911.mail.yahoo.com> List-Id: References: <200402191452.14645.vapier@gentoo.org> In-Reply-To: <200402191452.14645.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I just changed to kernel includes to make fewer devices.... include/linux/tty.h: 1.23 1.24 jonsmirl 04/02/07 14:34:12 (modified, needs delta) @@ -10,8 +10,8 @@ * resizing). */ #define MIN_NR_CONSOLES 1 /* must be at least 1 */ -#define MAX_NR_CONSOLES 63 /* serial lines start at 64 */ -#define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */ +#define MAX_NR_CONSOLES 15 /* serial lines start at 64 */ +#define MAX_NR_USER_CONSOLES 15 /* must be root to allocate above this */ /* Note: the ioctl VT_GETSTATE does not work for consoles 16 and higher (since it returns a short) */ --- Greg KH wrote: > On Thu, Feb 19, 2004 at 02:52:08PM -0500, Mike Frysinger wrote: > > i looked through the files in /etc/udev/ but wasnt able to figure out a way > to > > keep udev from creating nodes i'll never use ... > > > > for example, /dev/vc/ is populated with 64 nodes for the console and > /dev/rd/ > > is populated with 16 nodes for ramdisks ... personally i know i'm never > going > > to use 64 nodes for my console nor am i going to use 16 nodes for > > ramdisks ... > > > > is there anyway for me to say 'only create tty[0-5]' or 'only create > > ram[0-3]' ? note that even throwing them in subdirs and just not creating a > > > symlink isnt good enough in my book ;) > > Yes there is. Just make a rule that matches the devices that you do not > want to have created and do not specify a NAME field (or give it a empty > string.) Something like: > KERNEL="tty[6-9]", NAME="" > or just > KERNEL="tty[6-9]" > > Hope this helps. > > greg k-h > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id56&alloc_id438&op=click > _______________________________________________ > 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! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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