Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2008 16:58:35 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/share/man/man4 ddb.4 src/sys/kern tty.c src/sys/sys tty.h
Message-ID:  <200810151701.m9FH1mGQ056760@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2008-10-15 16:58:35 UTC

  FreeBSD src repository

  Modified files:
    share/man/man4       ddb.4 
    sys/kern             tty.c 
    sys/sys              tty.h 
  Log:
  SVN rev 183922 on 2008-10-15 16:58:35Z by ed
  
  Import some improvements to the TTY code from the MPSAFE TTY branch.
  
  - Change the ddb(4) commands to be more useful (by thompsa@):
    - `show ttys' is now called `show all ttys'. This command will now
      also display the address where the TTY data structure resides.
    - Add `show tty <addr>', which dumps the TTY in a readable form.
  
  - Place an upper bound on the TTY buffer sizes. Some drivers do not want
    to care about baud rates. Protect these drivers by preventing the TTY
    buffers from getting enormous. Right now we'll just clamp it to 64K,
    which is pretty high, taking into account that these buffers are only
    used by the built-in discipline.
  
  - Only call ttydev_leave() when needed. Back in April/May the TTY
    reference counting mechanism was a little different, which required us
    to call ttydev_leave() each time we finished a cdev operation.
    Nowadays we only need to call ttydev_leave() when we really mark it as
    being closed.
  
  - Improve return codes of read() and write() on TTY device nodes.
  
  - Make sure we really wake up all blocked threads when the driver calls
    tty_rel_gone(). There were some possible code paths where we didn't
    properly wake up any readers/writers.
  
  - Add extra assertions to prevent sleeping on a TTY that has been
    abandoned by the driver.
  
  - Use ttydev_cdevsw as a more reliable method to figure out whether a
    device node is a real TTY device node.
  
  Obtained from:  //depot/projects/mpsafetty/...
  Reviewed by:    thompsa
  
  Revision  Changes    Path
  1.60      +9 -4      src/share/man/man4/ddb.4
  1.293     +162 -37   src/sys/kern/tty.c
  1.110     +1 -0      src/sys/sys/tty.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810151701.m9FH1mGQ056760>