lkml.org 
[lkml]   [2004]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWrong console driver name in 2.4.26 in /proc/devices without devfs.
Hello!
I am running Linux-2.4.26-ow2 (OpenWall) without devfs.

And I have seen strange thing in /proc/devices:
--- Begin ---
Character devices:
1 mem
2 pty
3 ttyp
4 vc/%d /* *** Here! *** */
5 tty
7 vcs
10 misc
29 fb
128 ptm
136 pts
162 raw

Block devices:
3 ide0
22 ide1
--- End ---

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;

Opposite to this you can see in drivers/char/hvc_console.c in hvc_init ():
hvc_driver.magic = TTY_DRIVER_MAGIC;
hvc_driver.driver_name = "hvc";
#ifdef CONFIG_DEVFS_FS
hvc_driver.name = "hvc/%d";
#else
hvc_driver.name = "hvc";
#endif
hvc_driver.major = HVC_MAJOR;

So should console_driver.name assignment be surrounded
with #ifdef CONFIG_DEVFS_FS? And is its name "vc"?

And do you need to assign console_driver.driver_name?

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    [W:0.027 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site