diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-10-03 05:14:54 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-10-03 05:14:54 +0000 |
commit | a8d2a9f2d1a6d9bbbbccce37b31fae53193efb1c (patch) | |
tree | f6af3f27ba8dc64cccffb39cb9eac46cbc2a7c5b /sys/netgraph/ng_tty.h | |
parent | 7570f3398aa8c889259ef224e4ce5fdd77cc53ee (diff) | |
download | FreeBSD-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.h | 1 |
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_ */ |