]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/vt_kern.h
tty: Make vt's have a tty_port
[karo-tx-linux.git] / include / linux / vt_kern.h
index 7f56db4a79f02e02810c3018b34b8a52af2c24a6..56cce345aa8d6e89ea9a5c81747256ffee326b22 100644 (file)
@@ -100,6 +100,13 @@ extern int unbind_con_driver(const struct consw *csw, int first, int last,
                             int deflt);
 int vty_init(const struct file_operations *console_fops);
 
+static inline bool vt_force_oops_output(struct vc_data *vc)
+{
+       if (oops_in_progress && vc->vc_panic_force_write)
+               return true;
+       return false;
+}
+
 /*
  * vc_screen.c shares this temporary buffer with the console write code so that
  * we can easily avoid touching user space while holding the console spinlock.