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

Function pts_kqops_write_event

freebsd/kern/tty_pts.c:483–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483static int
484pts_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
499static struct filterops pts_kqops_read = {
500 .f_isfd = 1,

Callers

nothing calls this directly

Calls 1

ttydisc_rint_pollFunction · 0.85

Tested by

no test coverage detected