vt.h 611 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_VT_H
  3. #define _LINUX_VT_H
  4. #include <uapi/linux/vt.h>
  5. /* Virtual Terminal events. */
  6. #define VT_ALLOCATE 0x0001 /* Console got allocated */
  7. #define VT_DEALLOCATE 0x0002 /* Console will be deallocated */
  8. #define VT_WRITE 0x0003 /* A char got output */
  9. #define VT_UPDATE 0x0004 /* A bigger update occurred */
  10. #define VT_PREWRITE 0x0005 /* A char is about to be written to the console */
  11. #ifdef CONFIG_VT_CONSOLE
  12. extern int vt_kmsg_redirect(int new);
  13. #else
  14. static inline int vt_kmsg_redirect(int new)
  15. {
  16. return 0;
  17. }
  18. #endif
  19. #endif /* _LINUX_VT_H */