From owner-cvs-all@FreeBSD.ORG Mon Sep 22 19:43:18 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E62B1065672; Mon, 22 Sep 2008 19:43:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69AFD8FC15; Mon, 22 Sep 2008 19:43:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8MJhIbK089581; Mon, 22 Sep 2008 19:43:18 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8MJhIMO089580; Mon, 22 Sep 2008 19:43:18 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200809221943.m8MJhIMO089580@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Mon, 22 Sep 2008 19:25:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 22 Sep 2008 19:43:18 -0000 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