Bernhard Walle
5ada918b82
vt: introduce and use vt_kmsg_redirect() function
...
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).
This patch:
Instead of using and exporting a global value kmsg_redirect, introduce a
function vt_kmsg_redirect() that both can set and return the console where
messages are printed.
Change all users of kmsg_redirect (the VT code itself and kernel/power.c)
to the new interface.
The main advantage is that vt_kmsg_redirect() can also be used when
CONFIG_VT_CONSOLE is not set.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de >
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk >
Cc: Ingo Molnar <mingo@elte.hu >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-12-15 08:53:28 -08:00
..
2009-09-21 14:29:21 +02:00
2009-12-09 19:43:33 -08:00
2009-12-15 08:53:28 -08:00
2009-12-14 09:58:24 -08:00
2009-12-14 09:58:24 -08:00
2009-12-15 08:53:10 -08:00
2009-06-08 12:31:53 -07:00
2009-06-24 00:02:38 -04:00
2009-09-24 03:50:25 -04:00
2009-09-24 03:50:26 -04:00
2009-06-24 00:02:38 -04:00
2009-06-24 00:00:52 -04:00
2009-09-24 03:50:26 -04:00
2009-11-24 15:06:47 +11:00
2009-09-24 07:20:58 -07:00
2009-10-29 07:39:25 -07:00
2009-04-30 19:24:24 +02:00
2008-10-20 08:52:34 -07:00
2009-12-12 11:34:10 -08:00
2009-12-06 21:10:56 +01:00
2008-11-14 10:39:23 +11:00
2009-09-23 11:02:26 -07:00
2009-09-18 09:48:52 -07:00
2008-10-16 11:21:30 -07:00
2009-03-31 23:00:27 -04:00
2009-12-11 15:18:08 -08:00
2009-04-05 11:04:19 -07:00
2009-12-08 08:19:16 -08:00
2009-07-18 14:19:53 +02:00
2009-08-10 15:41:12 +02:00
2009-12-08 14:59:36 +01:00
2009-06-16 19:47:48 -07:00
2009-12-10 13:08:11 +01:00
2009-11-27 06:21:57 +01:00
2009-12-09 09:48:20 +01:00
2009-11-18 16:32:12 +01:00
2009-11-10 11:23:29 +01:00
2008-10-20 08:52:34 -07:00
2009-12-03 11:50:11 +01:00
2008-12-25 09:31:28 +01:00
2009-07-29 19:10:34 -07:00
2009-09-19 13:13:17 -07:00
2009-12-11 08:43:20 -06:00
2009-11-10 09:33:46 +11:00
2009-12-05 15:30:21 -08:00
2009-01-06 10:44:31 -08:00
2009-11-03 07:25:00 +01:00
2009-02-11 10:18:04 +01:00
2009-07-24 10:53:29 +02:00
2009-09-23 07:39:29 -07:00
2009-02-14 23:27:59 +01:00
2009-12-14 09:58:24 -08:00
2009-12-08 08:02:38 -08:00
2009-12-14 09:58:24 -08:00
2009-10-11 11:20:58 -07:00
2009-01-14 18:09:02 +01:00
2009-12-03 11:50:11 +01:00
2009-01-14 18:09:02 +01:00
2009-08-30 03:08:26 +02:00
2009-09-24 07:20:58 -07:00
2009-06-18 13:03:56 -07:00
2009-10-08 12:16:35 -07:00
2009-10-29 08:56:20 +10:30
2009-12-11 20:47:30 -08:00
2009-09-24 07:21:04 -07:00
2009-09-22 07:17:38 -07:00
2009-10-14 15:31:10 +02:00
2009-11-18 12:36:05 +01:00
2009-08-21 21:43:46 +02:00
2009-12-05 09:50:22 -08:00
2009-09-20 20:15:40 +02:00
2009-09-24 07:20:59 -07:00
2009-11-22 18:58:16 +01:00
2009-11-22 18:58:16 +01:00
2009-12-14 09:58:24 -08:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-09-27 11:39:25 -07:00
2009-10-01 16:11:13 -07:00
2009-11-04 13:06:46 -08:00
2009-04-06 11:14:02 +02:00
2009-08-06 05:50:21 +02:00
2009-09-30 22:56:10 +02:00
2009-08-02 14:26:09 +02:00
2009-03-30 22:05:17 +10:30
2009-12-10 20:32:39 +01:00
2009-12-09 10:04:02 +01:00
2009-12-09 10:03:07 +01:00
2009-12-09 10:01:07 +01:00
2009-12-09 10:01:07 +01:00
2009-03-24 23:16:51 +01:00
2009-12-14 09:58:24 -08:00
2009-03-02 15:41:30 -08:00
2008-08-05 14:33:47 -07:00
2009-12-05 15:30:21 -08:00
2009-12-01 08:20:31 -08:00
2009-12-08 07:38:50 -08:00
2009-12-01 08:20:31 -08:00
2009-12-15 08:53:25 -08:00
2009-12-14 09:58:24 -08:00
2009-10-29 22:34:13 +09:00
2009-11-13 20:53:28 +01:00
2009-10-26 09:40:30 +01:00
2008-12-25 11:44:43 +01:00
2009-03-30 22:05:17 +10:30
2009-12-08 07:55:01 -08:00
2009-12-15 08:53:26 -08:00
2009-11-12 01:42:31 -08:00
2009-12-03 12:14:38 -08:00
2009-12-15 08:53:23 -08:00
2009-07-12 14:03:27 -07:00
2009-01-06 15:59:20 -08:00
2009-12-08 19:27:08 -08:00
2009-09-23 09:46:15 -07:00
2009-09-21 15:14:55 +02:00
2009-03-09 08:13:35 -07:00
2009-09-23 18:13:10 -07:00
2009-01-12 16:04:37 +01:00
2009-02-27 16:26:21 -08:00
2009-12-02 10:22:59 +01:00
2009-11-02 16:02:39 +01:00
2009-11-12 02:04:55 -08:00
2009-06-18 13:03:55 -07:00
2009-08-10 14:43:09 +02:00
2009-12-10 09:35:44 -08:00