MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ttyhook_unregister

Function ttyhook_unregister

freebsd/kern/tty.c:2152–2168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150}
2151
2152void
2153ttyhook_unregister(struct tty *tp)
2154{
2155
2156 tty_assert_locked(tp);
2157 MPASS(tp->t_flags & TF_HOOK);
2158
2159 /* Disconnect the hook. */
2160 tp->t_flags &= ~TF_HOOK;
2161 tp->t_hook = NULL;
2162
2163 /* Maybe we need to leave bypass mode. */
2164 ttydisc_optimize(tp);
2165
2166 /* Maybe deallocate the TTY as well. */
2167 tty_rel_free(tp);
2168}
2169
2170/*
2171 * /dev/console handling.

Callers 1

ngt_shutdownFunction · 0.85

Calls 2

ttydisc_optimizeFunction · 0.85
tty_rel_freeFunction · 0.85

Tested by

no test coverage detected