diff options
author | ed <ed@FreeBSD.org> | 2008-09-22 19:25:14 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-09-22 19:25:14 +0000 |
commit | 1475e942ed4a544d79230d9b2774b0e79f9189cd (patch) | |
tree | b0edacd4932fd8b74d222a3adf26ec514131733e /usr.sbin/pstat | |
parent | d1f0654ba47a78005fb632d88f7f7e1f2715a850 (diff) | |
download | FreeBSD-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.8 | 2 | ||||
-rw-r--r-- | usr.sbin/pstat/pstat.c | 1 |
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' }, }; |