Date: Sat, 21 Jun 2003 19:54:33 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_prf.c tty.c tty_cons.c src/sys/sys tty.h Message-ID: <200306220254.h5M2sXxR099372@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306220254.h5M2sXxR099372>