ctrlchar.h 605 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Unified handling of special chars.
  3. *
  4. * Copyright IBM Corp. 2001
  5. * Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
  6. *
  7. */
  8. #include <linux/tty.h>
  9. #include <linux/sysrq.h>
  10. #include <linux/workqueue.h>
  11. extern unsigned int
  12. ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
  13. #define CTRLCHAR_NONE (1 << 8)
  14. #define CTRLCHAR_CTRL (2 << 8)
  15. #define CTRLCHAR_SYSRQ (3 << 8)
  16. #define CTRLCHAR_MASK (~0xffu)
  17. #ifdef CONFIG_MAGIC_SYSRQ
  18. struct sysrq_work {
  19. int key;
  20. struct work_struct work;
  21. };
  22. void schedule_sysrq_work(struct sysrq_work *sw);
  23. #endif