cvs commit: src/sys/kern subr_prf.c tty.c tty_cons.c src/sys/sys tty.h

Ian Dowse iedowse at FreeBSD.org
Sat Jun 21 19:54:35 PDT 2003


iedowse     2003/06/21 19:54:33 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c tty_cons.c subr_prf.c 
    sys/sys              tty.h 
  Log:
  Use a new message buffer `consmsgbuf' to forward messages to a
  TIOCCONS console (e.g. xconsole) via a timeout routine instead of
  calling into the tty code directly from printf(). This fixes a
  number of cases where calling printf() at the wrong time (such as
  with locks held) would cause a panic if xconsole is running.
  
  The TIOCCONS message buffer is 8k in size by default, but this can
  be changed with the kern.consmsgbuf_size sysctl. By default, messages
  are checked for 5 times per second. The timer runs and the buffer
  memory remains allocated only at times when a TIOCCONS console is
  active.
  
  Discussed on:   freebsd-arch
  
  Revision  Changes    Path
  1.104     +13 -13    src/sys/kern/subr_prf.c
  1.204     +3 -3      src/sys/kern/tty.c
  1.112     +70 -0     src/sys/kern/tty_cons.c
  1.72      +3 -0      src/sys/sys/tty.h


More information about the cvs-src mailing list