summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_tty.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-10-03 05:14:54 +0000
committerthompsa <thompsa@FreeBSD.org>2008-10-03 05:14:54 +0000
commita8d2a9f2d1a6d9bbbbccce37b31fae53193efb1c (patch)
treef6af3f27ba8dc64cccffb39cb9eac46cbc2a7c5b /sys/netgraph/ng_tty.h
parent7570f3398aa8c889259ef224e4ce5fdd77cc53ee (diff)
downloadFreeBSD-src-a8d2a9f2d1a6d9bbbbccce37b31fae53193efb1c.zip
FreeBSD-src-a8d2a9f2d1a6d9bbbbccce37b31fae53193efb1c.tar.gz
Update ng_tty for MPSAFE TTY.
This changes from a line discipline to the tty_hooks mechanism. Data will come in directly via rint_bypass and sent to the peer node in a single mbuf. As line disciplines are no longer used a new netgraph command called NGM_TTY_SET_TTY is used to attach the tty. This takes a pointer to to the open file descriptor of the tty and registers the tty hooks. When the tty disappears the node will shutdown. Thanks to: ed Sponsored by: Hobnob, Inc
Diffstat (limited to 'sys/netgraph/ng_tty.h')
-rw-r--r--sys/netgraph/ng_tty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_tty.h b/sys/netgraph/ng_tty.h
index c6b0094..3c9f643 100644
--- a/sys/netgraph/ng_tty.h
+++ b/sys/netgraph/ng_tty.h
@@ -59,6 +59,7 @@
enum {
NGM_TTY_GET_HOTCHAR = 1,
NGM_TTY_SET_HOTCHAR,
+ NGM_TTY_SET_TTY,
};
#endif /* _NETGRAPH_NG_TTY_H_ */
OpenPOWER on IntegriCloud