mpsafetty and [missing] multi put char
ed at 80386.nl
Sat Sep 13 16:19:31 UTC 2008
* Hans Petter Selasky <hselasky at c2i.net> 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
http://wiki.freebsd.org/TTYRedesign how to use them. Good luck!
Ed Schouten <ed at 80386.nl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080913/c48365b1/attachment.pgp
More information about the freebsd-current