lkml.org 
[lkml]   [2009]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectAlways print panic message on current console
Date
The kernel offers with TIOCL_GETKMSGREDIRECT ioctl() the possibility to
redirect the kernel messages to a specific console.

However, since it's not possible to switch to the kernel message console after
a panic(), it would be nice if the kernel would print the panic message on the
current console.

This patch series adds a new interface to access the global kmsg_redirect
variable by a function to be able to use it in code where CONFIG_VT_CONSOLE is
not set (kernel/panic.c).


Signed-off-by: Bernhard Walle <bernhard@bwalle.de>

---
drivers/char/vt.c | 43 +++++++++++++++++++++++++++++++++++++------
include/linux/tty.h | 2 --
include/linux/vt.h | 15 +++++++++++++++
kernel/panic.c | 4 ++++
kernel/power/console.c | 7 +++----
5 files changed, 59 insertions(+), 12 deletions(-)



\
 
 \ /
  Last update: 2009-10-11 23:15    [W:0.069 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site