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

Function ttydisc_rint_simple

freebsd/kern/tty_ttydisc.c:1097–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097size_t
1098ttydisc_rint_simple(struct tty *tp, const void *buf, size_t len)
1099{
1100 const char *cbuf;
1101
1102 if (ttydisc_can_bypass(tp))
1103 return (ttydisc_rint_bypass(tp, buf, len));
1104
1105 for (cbuf = buf; len-- > 0; cbuf++) {
1106 if (ttydisc_rint(tp, *cbuf, 0) != 0)
1107 break;
1108 }
1109
1110 return (cbuf - (const char *)buf);
1111}
1112
1113size_t
1114ttydisc_rint_bypass(struct tty *tp, const void *buf, size_t len)

Callers 4

ptsdev_writeFunction · 0.85
terminal_input_charFunction · 0.85
terminal_input_specialFunction · 0.85
termteken_respondFunction · 0.85

Calls 2

ttydisc_rint_bypassFunction · 0.85
ttydisc_rintFunction · 0.85

Tested by

no test coverage detected