Strange behavior of kernel module (output terminated)

Ed Schouten ed at 80386.nl
Tue Mar 23 19:18:10 UTC 2010


* Dmitry Krivenok <krivenok.dmitry at gmail.com> wrote:
> As you can see the loop was terminated after i==466.
> I tried to load/unload the module many times but the last printed number was
> always 466.
> 
> 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 550.

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.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100323/dc973611/attachment.pgp


More information about the freebsd-hackers mailing list