From owner-freebsd-current@FreeBSD.ORG Sat Sep 13 16:19:31 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13DAE1065674 for ; Sat, 13 Sep 2008 16:19:31 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [87.251.61.211]) by mx1.freebsd.org (Postfix) with ESMTP id C663D8FC1D for ; Sat, 13 Sep 2008 16:19:30 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 0D59B1CDCA; Sat, 13 Sep 2008 18:01:00 +0200 (CEST) Date: Sat, 13 Sep 2008 18:00:59 +0200 From: Ed Schouten To: Hans Petter Selasky Message-ID: <20080913160059.GM1191@hoeg.nl> References: <87fxot5hoi.fsf@kobe.laptop> <20080826160144.GG99951@hoeg.nl> <200809131715.36017.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AA9g+nFNFPYNJKiL" Content-Disposition: inline In-Reply-To: <200809131715.36017.hselasky@c2i.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Current Subject: Re: mpsafetty and [missing] multi put char X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2008 16:19:31 -0000 --AA9g+nFNFPYNJKiL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hps, * Hans Petter Selasky wrote: > Maybe I've overlooked something, but why is there no multi put char funct= ion.=20 > Isn't looping over "tty_putchar(struct tty *tp, char c)" really slow when= =20 > 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! --=20 Ed Schouten WWW: http://80386.nl/ --AA9g+nFNFPYNJKiL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkjL47sACgkQ52SDGA2eCwWZ7gCfaCkPSY//Q+OHgpJUDus8y4TX Vu8An1kF53mKTyAlYkOuYrgTaDeNZyI+ =q4AU -----END PGP SIGNATURE----- --AA9g+nFNFPYNJKiL--