cvs commit: src/sys/kern tty.c tty_ttydisc.c src/sys/sys tty.h ttydevsw.h ttydisc.h ttyhook.h src/usr.sbin/pstat pstat.8 pstat.c

Ed Schouten ed at FreeBSD.org
Mon Sep 22 19:43:18 UTC 2008


ed          2008-09-22 19:25:14 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c tty_ttydisc.c 
    sys/sys              tty.h ttydevsw.h ttydisc.h 
    usr.sbin/pstat       pstat.8 pstat.c 
  Added files:
    sys/sys              ttyhook.h 
  Log:
  SVN rev 183276 on 2008-09-22 19:25:14Z by ed
  
  Introduce a hooks layer for the MPSAFE TTY layer.
  
  One of the features that prevented us from fixing some of the TTY
  consumers to work once again, was an interface that allowed consumers to
  do the following:
  
  - `Sniff' incoming data, which is used by the snp(4) driver.
  
  - Take direct control of the input and output paths of a TTY, which is
    used by ng_tty(4), ppp(4), sl(4), etc.
  
  There's no practical advantage in committing a hooks layer without
  having any consumers. In P4 there is a preliminary port of snp(4) and
  thompsa@ is busy porting ng_tty(4) to this interface. I already want to
  have it in the tree, because this may stimulate others to work on the
  remaining modules.
  
  Discussed with: thompsa
  Obtained from:  //depot/projects/mpsafetty/...
  
  Revision  Changes    Path
  1.290     +88 -2     src/sys/kern/tty.c
  1.6       +93 -8     src/sys/kern/tty_ttydisc.c
  1.108     +7 -3      src/sys/sys/tty.h
  1.4       +1 -3      src/sys/sys/ttydevsw.h
  1.6       +2 -32     src/sys/sys/ttydisc.h
  1.1       +147 -0    src/sys/sys/ttyhook.h (new)
  1.52      +2 -0      src/usr.sbin/pstat/pstat.8
  1.106     +1 -0      src/usr.sbin/pstat/pstat.c


More information about the cvs-src mailing list