From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 23 19:18:10 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C2CD106564A for ; Tue, 23 Mar 2010 19:18:10 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2001:4dd0:ff41::b23f:aa]) by mx1.freebsd.org (Postfix) with ESMTP id 1E15E8FC0C for ; Tue, 23 Mar 2010 19:18:09 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id B355A2A29082; Tue, 23 Mar 2010 20:18:08 +0100 (CET) Date: Tue, 23 Mar 2010 20:18:08 +0100 From: Ed Schouten To: Dmitry Krivenok Message-ID: <20100323191808.GE32142@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HwnjeXAdSoek43pS" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: Strange behavior of kernel module (output terminated) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 19:18:10 -0000 --HwnjeXAdSoek43pS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Dmitry Krivenok 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 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--