#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
249311 |
|
09-Apr-2013 |
ed |
Add static/const keywords to the arrays.
This theoretically allows a compiler to optimize (parts of) the array away if unused.
While there, make the array size implicit and use a _Static_assert() to ensure that the definition matches up with the number of elements in the list.
|
#
231095 |
|
06-Feb-2012 |
ed |
Fix whitespace inconsistencies in TTY code.
|
#
184771 |
|
08-Nov-2008 |
ed |
Reduce the default baud rate of PTY's to 9600.
On RELENG_6 (and probably RELENG_7) we see our syscons windows and pseudo-terminals have the following buffer sizes:
| LINE RAW CAN OUT IHIWT ILOWT OHWT LWT COL STATE SESS PGID DISC | ttyv0 0 0 0 7680 6720 2052 256 7 OCcl 1146 1146 term | ttyp0 0 0 0 7680 6720 1296 256 0 OCc 82033 82033 term
These buffer sizes make no sense, because we often have much more output than input, but I guess having higher input buffer sizes improves guarantees of the system.
On MPSAFE TTY I just sent both the input and output buffer sizes to 7 KB, which is pretty big on a standard FreeBSD install with 8 syscons windows and some PTY's. Reduce the baud rate to 9600 baud, which means we now have the following buffer sizes:
| LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE | ttyv0 1920 0 0 192 1984 0 199 7 2401 2401 Oil | pts/0 1920 0 0 192 1984 0 199 5631 1305 2526 Oi
This is a lot smaller, but for pseudo-devices this should be good enough. You need to do a lot of punching to fill up a 7.5 KB input buffer. If it turns out things don't work out this way, we'll just switch to 19200 baud.
|
#
181905 |
|
20-Aug-2008 |
ed |
Integrate the new MPSAFE TTY layer to the FreeBSD operating system.
The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following:
- Improved driver model:
The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers.
If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver.
- Improved hotplugging:
With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc).
The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly.
- Improved performance:
One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters.
Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING.
Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
|
#
179567 |
|
05-Jun-2008 |
ed |
Fix faulty character to control-character conversion for CTRL().
The CTRL() macro seems to perform character to control-character conversion (i.e. 'A' to 0x01) to lowercase characters. This is actually not valid. If we use lowercase characters, conversions such as CTRL('\\') and CTRL('?') will result to invalid conversions.
Because we must still support old source code that uses CTRL() (bad!), we make CTRL() accept both forms. When the character is a lowercase character, we perform the old style conversion.
Approved by: philip (mentor)
|
#
137167 |
|
03-Nov-2004 |
phk |
Restore TTYDEF_LFLAG to set echo bits.
|
#
136553 |
|
15-Oct-2004 |
phk |
Make pty's always come up in echo mode.
|
#
136430 |
|
12-Oct-2004 |
phk |
Do not enable ECHO modes by default when a tty port is opened. If the other device also does echo'ing this can result in a character-storm before we ever get a chance to disable the echo modes.
|
#
135292 |
|
16-Sep-2004 |
phk |
whitespace change
|
#
127976 |
|
07-Apr-2004 |
imp |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999.
Approved by: core
|
#
69322 |
|
28-Nov-2000 |
jkh |
Kernel support for erase2 character.
Submitted by: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt>
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
28242 |
|
15-Aug-1997 |
ache |
Map CSTATUS to ^T by default or it never noticed by novice users Reviewed by: bde
|
#
22975 |
|
22-Feb-1997 |
peter |
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
8876 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
8449 |
|
11-May-1995 |
bde |
Define _POSIX_VDISABLE so that it can be used in #if expressions.
|
#
6923 |
|
06-Mar-1995 |
nate |
The new ld has apparently uncovered the bug that sio.c and tty.c both define ttydefchars[] as globals. This was fixed in 1.1.5 by making ttydefchars[] static like it should always have been.
Submitted by: Bruce Evans <bde@zeta.org.au>
|
#
3505 |
|
10-Oct-1994 |
wollman |
Turn off OXTABS by default. Inspection of systems here finds no commercial systems with it on by default (or the equivalent flag) and terminal control sequences confuse it greatly. (Try running `ls' under bash in an XTerm, for instance.)
|
#
2983 |
|
22-Sep-1994 |
ache |
make 8bit clean defaults
|
#
2196 |
|
21-Aug-1994 |
paul |
Remove the idempotency I added -- it was wrong. Reviewed by: Submitted by:
|
#
2165 |
|
21-Aug-1994 |
paul |
Made them all idempotent. Reviewed by: Submitted by:
|
#
1817 |
|
02-Aug-1994 |
dg |
Added $Id$
|
#
1542 |
|
24-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1541, which included commits to RCS files with non-trunk default branches.
|
#
1541 |
|
24-May-1994 |
rgrimes |
BSD 4.4 Lite Kernel Sources
|