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

Function ttydisc_rint_bypass

freebsd/kern/tty_ttydisc.c:1113–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113size_t
1114ttydisc_rint_bypass(struct tty *tp, const void *buf, size_t len)
1115{
1116 size_t ret;
1117
1118 tty_assert_locked(tp);
1119
1120 MPASS(tp->t_flags & TF_BYPASS);
1121
1122 atomic_add_long(&tty_nin, len);
1123
1124 if (ttyhook_hashook(tp, rint_bypass))
1125 return ttyhook_rint_bypass(tp, buf, len);
1126
1127 ret = ttyinq_write(&tp->t_inq, buf, len, 0);
1128 ttyinq_canonicalize(&tp->t_inq);
1129 if (ret < len)
1130 tty_hiwat_in_block(tp);
1131
1132 return (ret);
1133}
1134
1135void
1136ttydisc_rint_done(struct tty *tp)

Callers 1

ttydisc_rint_simpleFunction · 0.85

Calls 5

atomic_add_longFunction · 0.85
ttyhook_rint_bypassFunction · 0.85
ttyinq_writeFunction · 0.85
ttyinq_canonicalizeFunction · 0.85
tty_hiwat_in_blockFunction · 0.85

Tested by

no test coverage detected