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

Function ttydisc_getc_poll

freebsd/kern/tty_ttydisc.c:1262–1275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260}
1261
1262size_t
1263ttydisc_getc_poll(struct tty *tp)
1264{
1265
1266 tty_assert_locked(tp);
1267
1268 if (tp->t_flags & TF_STOPPED)
1269 return (0);
1270
1271 if (ttyhook_hashook(tp, getc_poll))
1272 return ttyhook_getc_poll(tp);
1273
1274 return ttyoutq_bytesused(&tp->t_outq);
1275}
1276
1277/*
1278 * XXX: not really related to the TTYDISC, but we'd better put

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 2

ttyhook_getc_pollFunction · 0.85
ttyoutq_bytesusedFunction · 0.85

Tested by

no test coverage detected