Searched refs:t_hook (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/sys/ |
H A D | ttyhook.h | 73 #define ttyhook_hashook(tp,hook) ((tp)->t_hook != NULL && \ 74 (tp)->t_hook->th_ ## hook != NULL) 82 return tp->t_hook->th_rint(tp, c, flags); in ttyhook_rint() 91 return tp->t_hook->th_rint_bypass(tp, buf, len); in ttyhook_rint_bypass() 100 tp->t_hook->th_rint_done(tp); in ttyhook_rint_done() 109 return tp->t_hook->th_rint_poll(tp); in ttyhook_rint_poll() 118 return tp->t_hook->th_getc_inject(tp, buf, len); in ttyhook_getc_inject() 127 tp->t_hook->th_getc_capture(tp, buf, len); in ttyhook_getc_capture() 136 return tp->t_hook->th_getc_poll(tp); in ttyhook_getc_poll() 144 tp->t_hook->th_close(tp); in ttyhook_close()
|
H A D | tty.h | 123 struct ttyhook *t_hook; /* (t) Capture/inject hook. */ member
|
/freebsd/sys/kern/ |
H A D | tty.c | 2162 MPASS((tp->t_hook == NULL) == ((tp->t_flags & TF_HOOK) == 0)); in ttyhook_register() 2167 tp->t_hook = th; in ttyhook_register() 2194 tp->t_hook = NULL; in ttyhook_unregister() 2429 _db_show_hooks("\t", tp->t_hook); in DB_SHOW_COMMAND()
|