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

Function tty_putstrn

freebsd/kern/tty_ttydisc.c:1283–1301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281 */
1282
1283int
1284tty_putstrn(struct tty *tp, const char *p, size_t n)
1285{
1286 size_t i;
1287
1288 tty_assert_locked(tp);
1289
1290 if (tty_gone(tp))
1291 return (-1);
1292
1293 for (i = 0; i < n; i++)
1294 ttydisc_echo_force(tp, p[i], 0);
1295
1296 tp->t_writepos = tp->t_column;
1297 ttyinq_reprintpos_set(&tp->t_inq);
1298
1299 ttydevsw_outwakeup(tp);
1300 return (0);
1301}
1302
1303int
1304tty_putchar(struct tty *tp, char c)

Callers 2

tty_putcharFunction · 0.85
sbuf_tty_drainFunction · 0.85

Calls 3

ttydisc_echo_forceFunction · 0.85
ttyinq_reprintpos_setFunction · 0.85
ttydevsw_outwakeupFunction · 0.85

Tested by

no test coverage detected