| 112 | } |
| 113 | |
| 114 | static __inline size_t |
| 115 | ttyhook_getc_inject(struct tty *tp, void *buf, size_t len) |
| 116 | { |
| 117 | tty_assert_locked(tp); |
| 118 | MPASS(!tty_gone(tp)); |
| 119 | |
| 120 | return tp->t_hook->th_getc_inject(tp, buf, len); |
| 121 | } |
| 122 | |
| 123 | static __inline void |
| 124 | ttyhook_getc_capture(struct tty *tp, const void *buf, size_t len) |