Ttys structures are now allocated dynamically via ttymalloc/ttyfree.
authorGuido van Rooij <guido@gvr.win.tue.nl>
Wed, 2 Mar 1994 20:29:03 +0000 (20:29 +0000)
committerGuido van Rooij <guido@gvr.win.tue.nl>
Wed, 2 Mar 1994 20:29:03 +0000 (20:29 +0000)
commit6cc15668296ec46a984aff9adfb05347c3797d2e
treeb7c9949a60a57ec1bde55bfe4b8e70ad1e7332fe
parentde3b2074469e089dd0db9d8d1398b71ab1c60644
Ttys structures are now allocated dynamically via ttymalloc/ttyfree.
This inetrface should be used from now on.
pseudo device pty xx still keeps its meaning: a maximum of
xx ptys is allowed.
A ringbuffer is now 2040 bytes long, per Garrett Wollman's request.
The changes are inspired by the way NetBSD did it (thanks for that!),
though I made it slihghtly different, including the interface so
at least 75% of the allocated space is deallocated when the tty is
closed.
Note further that it is easy to modify the ringbuffer length runtime.
This will have to wait untill some later date...

-Guido
13 files changed:
sys/i386/doc/Changes
sys/i386/i386/conf.c
sys/i386/isa/com.c
sys/i386/isa/pccons.c
sys/i386/isa/sio.c
sys/i386/isa/syscons.c
sys/kern/tty.c
sys/kern/tty_pty.c
sys/net/if_ppp.c
sys/net/if_sl.c
sys/sys/conf.h
sys/sys/malloc.h
sys/sys/tty.h