]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix clist limits. They were usually one too low. E.g., for a limit of
authorbde <bde@FreeBSD.org>
Wed, 25 Oct 1995 17:59:58 +0000 (17:59 +0000)
committerbde <bde@FreeBSD.org>
Wed, 25 Oct 1995 17:59:58 +0000 (17:59 +0000)
commitfcc3ae3084cf7b56d83f4b418f21301165d1c738
tree52c403405e20c5b91f5e5cd32022cb0e11f8330c
parenta82dbdecafb66d5c1992b9d3922ecd9d5d99d403
Fix clist limits.  They were usually one too low.  E.g., for a limit of
TTYHOG = 1024 bytes, 10 cblocks were reserved.  This was thought to
provide 10 * CBSIZE = 1080 bytes of buffering, but if the head pointer
is at the end of a cblock, then it only provides 1 + 9 * CBSIZE = 973
bytes of buffering.  This caused serious data loss for ptys because the
flow control is deterministic and requires at least TTYHOG bytes of
buffering.  For ttys, if input flow control is used then there is
usually enough slop in the high watermark to avoid problems, and if
input flow control isn't used then a limit of 973 is not much different
from a limit of 1024.

Add prototypes.

Continue cleaning up new init stuff.
sys/kern/subr_clist.c
sys/kern/tty_subr.c