possible to mask nodes from being created ?
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 ;)
-mike
Quoted 11 lines · Mike Frysinger
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
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) */
Quoted 29 lines · --- Greg KH
Quoted 1 line · Mike Frysinger
i looked through the files in
/etc/udev/but wasnt able to figure out a wayto
Quoted 3 lines
keep udev from creating nodes i'll never use ...
for example,
/dev/vc/is populated with 64 nodes for the console and
/dev/rd/Quoted 1 line
is populated with 16 nodes for ramdisks ... personally i know i'm never
going
Quoted 7 lines
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
Quoted 9 lines
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
==Jon Smirl
[email protected]
__________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Jon Smirl
I just changed to kernel includes to make fewer devices....
Quoted 3 lines
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.)
ah both will work just fine, thanks guys
-mike