Date: Tue, 23 Mar 2010 20:18:08 +0100 From: Ed Schouten <ed@80386.nl> To: Dmitry Krivenok <krivenok.dmitry@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Strange behavior of kernel module (output terminated) Message-ID: <20100323191808.GE32142@hoeg.nl> In-Reply-To: <da48cf211003230218n56794f0bs27eef860efc0da3e@mail.gmail.com> References: <da48cf211003230218n56794f0bs27eef860efc0da3e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--HwnjeXAdSoek43pS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Dmitry Krivenok <krivenok.dmitry@gmail.com> wrote: > As you can see the loop was terminated after i=3D=3D466. > I tried to load/unload the module many times but the last printed number = was > always 466. >=20 > Then I compiled the same module on FreeBSD-7.2 (note, the first test was = run > on 8.0). > I saw exactly the same behavior except that the last number was always 55= 0. Yes. There is not a single form of flow control here, so if you can't write more data into the TTY buffers, it will just get discarded. FreeBSD 7 does the same thing as 8, but the default buffer sizes are probably a bit different. --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --HwnjeXAdSoek43pS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkupE+8ACgkQ52SDGA2eCwWLKwCfRCPKXtvWD5NX5CH6uRWJbFPx v6wAn21DSflch2sF5r0eOdHQbMTB/OdF =GK+2 -----END PGP SIGNATURE----- --HwnjeXAdSoek43pS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100323191808.GE32142>