| 76 | (tp)->t_hook->th_ ## hook != NULL) |
| 77 | |
| 78 | static __inline int |
| 79 | ttyhook_rint(struct tty *tp, char c, int flags) |
| 80 | { |
| 81 | tty_assert_locked(tp); |
| 82 | MPASS(!tty_gone(tp)); |
| 83 | |
| 84 | return tp->t_hook->th_rint(tp, c, flags); |
| 85 | } |
| 86 | |
| 87 | static __inline size_t |
| 88 | ttyhook_rint_bypass(struct tty *tp, const void *buf, size_t len) |