diff options
Diffstat (limited to 'include/linux/vt.h')
| -rw-r--r-- | include/linux/vt.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 7ffa11f06232..d5dd0bc408fd 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
| @@ -84,4 +84,23 @@ struct vt_setactivate { | |||
| 84 | 84 | ||
| 85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ | 85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ |
| 86 | 86 | ||
| 87 | #ifdef __KERNEL__ | ||
| 88 | |||
| 89 | #ifdef CONFIG_VT_CONSOLE | ||
| 90 | |||
| 91 | extern int vt_kmsg_redirect(int new); | ||
| 92 | |||
| 93 | #else | ||
| 94 | |||
| 95 | static inline int vt_kmsg_redirect(int new) | ||
| 96 | { | ||
| 97 | return 0; | ||
| 98 | } | ||
| 99 | |||
| 100 | #endif | ||
| 101 | |||
| 102 | #endif /* __KERNEL__ */ | ||
| 103 | |||
| 104 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
| 105 | |||
| 87 | #endif /* _LINUX_VT_H */ | 106 | #endif /* _LINUX_VT_H */ |
