freebsd-dev/sys
Ed Schouten 74bb9e3ad5 Fix some edge cases in the TTY queues:
- In the current design, when a TTY decreases its baud rate, it tries to
  shrink the queues. This may not always be possible, because it will
  not free any blocks that are still filled with data.

  Change the TTY queues to store a `quota' value as well, which means it
  will not free any blocks when changing the baud rate, but when placing
  blocks back into the queue. When the amount of blocks exceeds the
  quota, they get freed.

  It also fixes some edge cases, where TIOCSETA during read()/
  write()-calls could actually make the queue a tiny bit bigger than in
  normal cases.

- Don't leak blocks of memory when calling TIOCSETA when the device
  driver abandons the TTY while allocating memory.

- Create ttyoutq_init() and ttyinq_init() to initialize the queues,
  instead of initializing them by hand. The new TTY snoop driver also
  creates an outq, so it's good to have a proper interface to do this.

Obtained from:	//depot/projects/mpsafetty/...
2008-08-30 09:18:27 +00:00
..
amd64 Move empty filter handling to MI source. 2008-08-26 21:06:31 +00:00
arm Whitespace nit. 2008-08-23 23:35:08 +00:00
boot Add geom_journal 2008-08-26 13:27:48 +00:00
bsm When MPSAFE ttys were merged, a new BSM audit event identifier was 2008-08-24 21:20:35 +00:00
cam Fix a locking mistake in daopen(). If the open fails, which can happen 2008-08-29 04:39:46 +00:00
cddl Ensure that the padding calcualtion doesn't return a negative value. 2008-08-29 15:55:49 +00:00
compat Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
conf Minor tweaks to remove references to files that aren't present in the 2008-08-27 01:41:32 +00:00
contrib Merge ath_hal 0.10.5.10 to head. 2008-08-28 00:22:59 +00:00
crypto Simplify session selection/allocation. 2008-08-09 20:01:01 +00:00
ddb Add a missing include which was erroneusly left out from the previous 2008-08-18 16:51:44 +00:00
dev Don't return EINVAL when trying to unlock. 2008-08-30 01:00:18 +00:00
fs Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
gdb
geom Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
gnu Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
i386 Fail detach if cpufreq_unregister() fails. 2008-08-28 19:55:18 +00:00
ia64 Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
isa MFp4 (my newcard tree): 2008-08-24 07:40:14 +00:00
kern Fix some edge cases in the TTY queues: 2008-08-30 09:18:27 +00:00
libkern Add strcspn to libkern for use by xenbus routines. Will add to build 2008-08-15 04:07:22 +00:00
mips White space nit. 2008-08-23 23:44:45 +00:00
modules Remove opt_wi.h from module and fix typo in pccarddevs. 2008-08-27 05:43:46 +00:00
net Make bpf_maxinsns visible from ng_bpf.c. 2008-08-29 20:34:06 +00:00
net80211 Fixing INVARIANTS build by adding 'z' format prefix for size_t typed 2008-08-29 08:44:51 +00:00
netatalk
netgraph Make sure BPF program is not bigger than set maximum (net.bpf.maxinsns). 2008-08-29 15:49:40 +00:00
netinet Fix a bug whereby multicast packets that are looped back locally 2008-08-29 20:42:58 +00:00
netinet6 another missed V_ 2008-08-25 06:09:32 +00:00
netipsec Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
netipx Begin the sysctl descriptions with a capital letter. 2008-07-25 23:54:07 +00:00
netnatm
netncp
netsmb
nfs
nfs4client Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
nfsclient Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
nfsserver Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
nlm Rename RPC's 'struct pmap' to 'struct portmap' to avoid confusing it with 2008-08-25 09:36:17 +00:00
opencrypto
pc98 Add the uart for 2nd CCU support. 2008-08-25 14:52:50 +00:00
pccard
pci Move wb driver from sys/pci to sys/dev/wb. 2008-08-14 21:26:29 +00:00
powerpc Move initialization of tlb0, ptbl_bufs and kernel_pdir regions after we are 2008-08-28 07:38:08 +00:00
rpc Rename RPC's 'struct pmap' to 'struct portmap' to avoid confusing it with 2008-08-25 09:36:17 +00:00
security Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
sparc64 There's a race in kmem(4) between checking whether a page is resident 2008-08-24 20:53:36 +00:00
sun4v Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
sys Fix some edge cases in the TTY queues: 2008-08-30 09:18:27 +00:00
tools
ufs Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
vm Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
xdr
xen - add more debug cruft to xenbus 2008-08-20 09:20:12 +00:00
Makefile Improve the glimpse target: don't index .svn and compile directories. 2008-08-15 14:11:30 +00:00