FreeBSD/sys/kern/tty_ttydisc.c
/*
 * XXX: not really related to the TTYDISC, but we'd better put
 * tty_putchar() here, because we need to perform proper output
 * processing.
 */
not really related to the TTYDISC, but we'd better put
tty_putchar() here, because we need to perform proper output
processing.
not really related to the TTYDISC but we ' d better put tty_putchar () here because we need to perform proper output processing .
int
tty_putchar(struct tty *tp, char c)
{
	tty_lock_assert(tp, MA_OWNED);
	if (tty_gone(tp))
		return (-1);
	ttydisc_echo_force(tp, c, 0);
	tp->t_writepos = tp->t_column;
	ttyinq_reprintpos_set(&tp->t_inq);
	ttydevsw_outwakeup(tp);
	return (0);
}
int tty_putchar ( struct tty * tp , char c ) { tty_lock_assert ( tp , MA_OWNED ) ; if ( tty_gone ( tp ) ) return ( -1 ) ; ttydisc_echo_force ( tp , c , 0 ) ; tp -> t_writepos = tp -> t_column ; ttyinq_reprintpos_set ( & tp -> t_inq ) ; ttydevsw_outwakeup ( tp ) ; return ( 0 ) ; }
XXX: not really related to the TTYDISC, but we'd better put
 tty_putchar() here, because we need to perform proper output
 processing.
XXX : not really related to the TTYDISC but we ' d better put tty_putchar () here because we need to perform proper output processing .