freebsd-nq/sys/compat/linux
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
..
linux_emul.c Implement robust futexes. Most of the code is modelled after 2008-05-13 20:01:27 +00:00
linux_emul.h Implement robust futexes. Most of the code is modelled after 2008-05-13 20:01:27 +00:00
linux_file.c d_ino member of linux_dirent structure should be unsigned long. 2008-06-08 11:09:25 +00:00
linux_file.h Implement the linux syscalls 2008-04-08 09:45:49 +00:00
linux_futex.c Implement robust futexes. Most of the code is modelled after 2008-05-13 20:01:27 +00:00
linux_futex.h Implement robust futexes. Most of the code is modelled after 2008-05-13 20:01:27 +00:00
linux_getcwd.c vn_lock() is currently only used with the 'curthread' passed as argument. 2008-01-10 01:10:58 +00:00
linux_ioctl.c Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
linux_ioctl.h Add TIOCPKT and TIOCSPTLCK to the Linuxolator. 2008-07-23 17:47:44 +00:00
linux_ipc.c MFp4 (112379): 2007-01-14 16:34:43 +00:00
linux_ipc.h MFP4 (110956): 2006-12-21 13:11:06 +00:00
linux_mib.c Switch to emulating Linux 2.6 on default. 2008-06-03 17:50:13 +00:00
linux_mib.h MFp4 (111746+): 2006-12-31 12:39:10 +00:00
linux_misc.c Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
linux_misc.h Sanitize arguments to linux_mremap(). 2008-02-22 11:47:56 +00:00
linux_signal.c MFp4 (112534): 2007-01-07 19:14:06 +00:00
linux_signal.h MFP4 (107868 - 107870): 2006-10-15 12:51:43 +00:00
linux_socket.c Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
linux_socket.h
linux_stats.c Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
linux_sysctl.c Unbreak COMPAT_LINUX32 option support on amd64. 2006-03-19 11:10:33 +00:00
linux_sysproto.h Handle unimplemented syscall by instantly returning ENOSYS instead of sending 2005-03-07 00:18:06 +00:00
linux_time.c MFP4: 109655 2006-12-20 20:17:35 +00:00
linux_uid16.c Add the support for the AT_FDCWD and fd-relative name lookups to the 2008-03-31 12:01:21 +00:00
linux_util.c Push down the major/minor conversion for pts/%u to improve consistency. 2008-06-02 08:40:06 +00:00
linux_util.h Implement the linux syscalls 2008-04-08 09:45:49 +00:00