From owner-cvs-all@FreeBSD.ORG Sat Jun 21 19:54:34 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CCC037B401; Sat, 21 Jun 2003 19:54:34 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 297EE43F3F; Sat, 21 Jun 2003 19:54:34 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5M2sX0U099373; Sat, 21 Jun 2003 19:54:33 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5M2sXxR099372; Sat, 21 Jun 2003 19:54:33 -0700 (PDT) Message-Id: <200306220254.h5M2sXxR099372@repoman.freebsd.org> From: Ian Dowse Date: Sat, 21 Jun 2003 19:54:33 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern subr_prf.c tty.c tty_cons.c src/sys/sys tty.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2003 02:54:34 -0000 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