此时可以使用get_current_tty这一接口获取当前终端,将消息打印到当前终端窗口中。 使用方式如下: /* #include <linux/tty.h> */staticstructtty_struct*tty;unsignedchar*newLine ="\r\n";unsignedchar*errInfo ="Error: a test error.\r\n"; tty = get_current_tty();if(tty) { (tty->driver->ops-...