MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ttydisc_getc_poll

Function ttydisc_getc_poll

components/lwp/terminal/freebsd/tty_ttydisc.c:1466–1479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1464}
1465
1466size_t ttydisc_getc_poll(struct lwp_tty *tp)
1467{
1468 tty_assert_locked(tp);
1469
1470 if (tp->t_flags & TF_STOPPED)
1471 return 0;
1472
1473#if USING_BSD_HOOK
1474 if (ttyhook_hashook(tp, getc_poll))
1475 return ttyhook_getc_poll(tp);
1476#endif
1477
1478 return ttyoutq_bytesused(&tp->t_outq);
1479}

Callers 5

ttydevsw_outwakeupFunction · 0.85
ptsdev_readFunction · 0.85
ptsdev_ioctlFunction · 0.85
ptsdev_pollFunction · 0.85
pts_kqops_read_eventFunction · 0.85

Calls 1

ttyoutq_bytesusedFunction · 0.85

Tested by

no test coverage detected