mpsafetty and [missing] multi put char

Ed Schouten ed at
Sat Sep 13 16:19:31 UTC 2008

Hello hps,

* Hans Petter Selasky <hselasky at> wrote:
> Maybe I've overlooked something, but why is there no multi put char function. 
> Isn't looping over "tty_putchar(struct tty *tp, char c)" really slow when 
> receiving 70-80kbyte per second?

tty_putchar() is not the routine that is called when receiving data.
tty_putchar() does exactly the same thing as what `tputchar()' used to
do, namely print a system message to the TTY.

The routines you are probably looking for, are ttydisc_rint(),
ttydisc_can_bypass() and ttydisc_rint_bypass(). Please take a look at how to use them. Good luck!

 Ed Schouten <ed at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list