| 481 | } |
| 482 | |
| 483 | static int |
| 484 | pts_kqops_write_event(struct knote *kn, long hint) |
| 485 | { |
| 486 | struct file *fp = kn->kn_fp; |
| 487 | struct tty *tp = fp->f_data; |
| 488 | struct pts_softc *psc = tty_softc(tp); |
| 489 | |
| 490 | if (psc->pts_flags & PTS_FINISHED) { |
| 491 | kn->kn_flags |= EV_EOF; |
| 492 | return (1); |
| 493 | } else { |
| 494 | kn->kn_data = ttydisc_rint_poll(tp); |
| 495 | return (kn->kn_data > 0); |
| 496 | } |
| 497 | } |
| 498 | |
| 499 | static struct filterops pts_kqops_read = { |
| 500 | .f_isfd = 1, |
nothing calls this directly
no test coverage detected