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

Function tty_kqops_write_event

freebsd/kern/tty.c:738–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738static int
739tty_kqops_write_event(struct knote *kn, long hint __unused)
740{
741 struct tty *tp = kn->kn_hook;
742
743 tty_assert_locked(tp);
744
745 if (tty_gone(tp)) {
746 kn->kn_flags |= EV_EOF;
747 return (1);
748 } else {
749 kn->kn_data = ttydisc_write_poll(tp);
750 return (kn->kn_data > 0);
751 }
752}
753
754static struct filterops tty_kqops_read = {
755 .f_isfd = 1,

Callers

nothing calls this directly

Calls 1

ttydisc_write_pollFunction · 0.85

Tested by

no test coverage detected