| 712 | } |
| 713 | |
| 714 | static int |
| 715 | tty_kqops_read_event(struct knote *kn, long hint __unused) |
| 716 | { |
| 717 | struct tty *tp = kn->kn_hook; |
| 718 | |
| 719 | tty_assert_locked(tp); |
| 720 | |
| 721 | if (tty_gone(tp) || tp->t_flags & TF_ZOMBIE) { |
| 722 | kn->kn_flags |= EV_EOF; |
| 723 | return (1); |
| 724 | } else { |
| 725 | kn->kn_data = ttydisc_read_poll(tp); |
| 726 | return (kn->kn_data > 0); |
| 727 | } |
| 728 | } |
| 729 | |
| 730 | static void |
| 731 | tty_kqops_write_detach(struct knote *kn) |
nothing calls this directly
no test coverage detected