freebsd-dev/sys/i386/ibcs2
Ed Schouten bc093719ca 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
2008-08-20 08:31:58 +00:00
..
coff.h
ibcs2_dirent.h
ibcs2_errno.c
ibcs2_errno.h
ibcs2_fcntl.c Add the new kernel-mode NFS Lock Manager. To use it instead of the 2008-03-26 15:23:12 +00:00
ibcs2_fcntl.h
ibcs2_ioctl.c Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
ibcs2_ioctl.h
ibcs2_ipc.c - Split the IBCS2 ipc foosys() system calls up into subfunctions matching 2006-07-08 19:54:12 +00:00
ibcs2_ipc.h Use ibsc2_key_t rather than key_t. 2006-07-08 19:52:49 +00:00
ibcs2_isc_syscall.h Regen for MPSAFE flag removal. 2006-07-28 19:08:37 +00:00
ibcs2_isc_sysent.c Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier 2006-08-15 17:37:01 +00:00
ibcs2_isc.c Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to 2006-07-28 19:05:28 +00:00
ibcs2_misc.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
ibcs2_mount.h
ibcs2_msg.c Use the regular poll(2) function to implement poll(2) for the IBCS2 compat 2006-07-06 21:29:05 +00:00
ibcs2_other.c Use kern_connect() in spx_open() to avoid the need for the stackgap. I 2006-07-08 20:05:04 +00:00
ibcs2_proto.h Merge posix4/* into normal kernel hierarchy. 2006-11-11 16:26:58 +00:00
ibcs2_signal.c
ibcs2_signal.h
ibcs2_socksys.c Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
ibcs2_socksys.h
ibcs2_stat.c
ibcs2_stat.h
ibcs2_statfs.h
ibcs2_stropts.h
ibcs2_syscall.h Regen for MPSAFE flag removal. 2006-07-28 19:08:37 +00:00
ibcs2_sysent.c Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier 2006-08-15 17:37:01 +00:00
ibcs2_sysi86.c Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
ibcs2_sysvec.c Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
ibcs2_termios.h
ibcs2_time.h
ibcs2_types.h
ibcs2_unistd.h
ibcs2_ustat.h
ibcs2_util.c Implement the linux syscalls 2008-04-08 09:45:49 +00:00
ibcs2_util.h Retire the stackgap macros from ibcs2 as they are no longer used. Push 2006-07-10 17:59:26 +00:00
ibcs2_utime.h
ibcs2_utsname.h
ibcs2_xenix_syscall.h Regen for MPSAFE flag removal. 2006-07-28 19:08:37 +00:00
ibcs2_xenix_sysent.c Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier 2006-08-15 17:37:01 +00:00
ibcs2_xenix.c Remove pad argument from ftruncate wrapper. Oops. 2007-07-05 05:32:44 +00:00
ibcs2_xenix.h Merge posix4/* into normal kernel hierarchy. 2006-11-11 16:26:58 +00:00
imgact_coff.c Remove kernel support for M:N threading. 2008-03-12 10:12:01 +00:00
Makefile Correct help line: list targets, not names of files generated by targets 2006-02-05 23:25:19 +00:00
syscalls.conf - Remove unused sysvec variables from various syscalls.conf. 2006-08-15 17:25:55 +00:00
syscalls.isc Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to 2006-07-28 19:05:28 +00:00
syscalls.isc.conf - Remove unused sysvec variables from various syscalls.conf. 2006-08-15 17:25:55 +00:00
syscalls.master Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to 2006-07-28 19:05:28 +00:00
syscalls.xenix Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to 2006-07-28 19:05:28 +00:00
syscalls.xenix.conf - Remove unused sysvec variables from various syscalls.conf. 2006-08-15 17:25:55 +00:00