博文

目前显示的是 三月, 2012的博文

what is /dev/vc ?

在Document/filesystems/proc.txt中: To see  which  tty's  are  currently in use, you can simply look into the file /proc/tty/drivers: 在我的机器上: $cat /proc/tty/drivers /dev/tty             /dev/tty        5       0 system:/dev/tty /dev/console         /dev/console    5       1 system:console /dev/ptmx            /dev/ptmx       5       2 system /dev/vc/0            /dev/vc/0       4       0 system:vtmaster rfcomm               /dev/rfcomm   216 0-255 serial ttyprintk            /dev/ttyprintk   5       3 console serial               /dev/ttyS       4 64-111 serial pty_slave            /dev/pts      136 0-1048575 pty:slave pty_master           /dev/ptm      128 0-1048575 pty:master unknown              /dev/tty        4 1-63 console   vc是什么东东呢: In Linux the PC monitor is usually called the console and has several device special files associated with it: vc/0 (tty0), vc/1 (tty1), vc/2 (tty2), etc. When you log in you are on vc/1. To go to vc/2 (on the same screen) press down the 2

关于tty驱动的简单问题

~/temp/linux-3.0.8$ cat /proc/tty/drivers /dev/tty             /dev/tty        5       0 system:/dev/tty /dev/console         /dev/console    5       1 system:console /dev/ptmx            /dev/ptmx       5       2 system /dev/vc/0            /dev/vc/0       4       0 system:vtmaster rfcomm               /dev/rfcomm   216 0-255 serial ttyprintk            /dev/ttyprintk   5       3 console serial               /dev/ttyS       4 64-111 serial pty_slave            /dev/pts      136 0-1048575 pty:slave pty_master           /dev/ptm      128 0-1048575 pty:master unknown              /dev/tty        4 1-63 console 根据LDD p547: To determine what kind of tty drivers are currently loaded in the kernel and what tty devices are currently present, look at the /proc/tty/drivers file. This file consists of a list of the different tty drivers currently present, showing the name of the driver, the default node name, the major number for the driver, the range of minors used by the driver, and th