1、tty初始化:
start_kernel // init/main.c
console_init // kernel/printk/printk.c
n_tty_init // drivers/tty/n_tty.c
chr_dev_init // fs_initcall(chr_dev_init);
tty_init // drivers/tty/tty_io.c