| 736 | } |
| 737 | |
| 738 | static int |
| 739 | tty_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 | |
| 754 | static struct filterops tty_kqops_read = { |
| 755 | .f_isfd = 1, |
nothing calls this directly
no test coverage detected