lkml.org 
[lkml]   [2004]   [Jul]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 22 Jul 2004 13:02:12 +0400 (MSD)
From"Igor Yu. Zhbanov" <>
Subject[BUG?] Console driver name in 2.4.26 in /proc/devices without devfs.
Hello!
I am running Linux-2.4.26 without devfs.

And I see this in /proc/devices:

Character devices:
...
  4 vc/%d
...

You can see following in drivers/char/console.c in con_init ():
	console_driver.magic = TTY_DRIVER_MAGIC;
	console_driver.name = "vc/%d";
	console_driver.name_base = 1;
	console_driver.major = TTY_MAJOR;

I suggest:
	console_driver.magic = TTY_DRIVER_MAGIC;
#ifdef CONFIG_DEVFS_FS
	console_driver.name = "vc/%d";
#else
	console_driver.name = "vc";
#endif
	console_driver.name_base = 1;
	console_driver.major = TTY_MAJOR;

Thank you!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2008