summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-09-22 19:25:14 +0000
committered <ed@FreeBSD.org>2008-09-22 19:25:14 +0000
commit1475e942ed4a544d79230d9b2774b0e79f9189cd (patch)
treeb0edacd4932fd8b74d222a3adf26ec514131733e /usr.sbin/pstat
parentd1f0654ba47a78005fb632d88f7f7e1f2715a850 (diff)
downloadFreeBSD-src-1475e942ed4a544d79230d9b2774b0e79f9189cd.zip
FreeBSD-src-1475e942ed4a544d79230d9b2774b0e79f9189cd.tar.gz
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/...
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.82
-rw-r--r--usr.sbin/pstat/pstat.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pstat/pstat.8 b/usr.sbin/pstat/pstat.8
index 2770cb7..5474f8b 100644
--- a/usr.sbin/pstat/pstat.8
+++ b/usr.sbin/pstat/pstat.8
@@ -202,6 +202,8 @@ output stopped (ixon flow control)
block mode input routine in use
.It Z
connection lost
+.It s
+i/o being snooped
.El
.Pp
The
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 51828cb..a1e81b3 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -312,6 +312,7 @@ static struct {
{ TF_EXCLUDE, 'X' },
{ TF_BYPASS, 'l' },
{ TF_ZOMBIE, 'Z' },
+ { TF_HOOK, 's' },
{ 0, '\0' },
};
OpenPOWER on IntegriCloud