From a8d2a9f2d1a6d9bbbbccce37b31fae53193efb1c Mon Sep 17 00:00:00 2001 From: thompsa Date: Fri, 3 Oct 2008 05:14:54 +0000 Subject: 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 --- sys/netgraph/ng_tty.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netgraph/ng_tty.h') 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_ */ -- cgit v1.1