diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1999-10-23 04:28:11 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1999-10-23 04:28:11 +0000 |
| commit | b58a8a3b1d5cdaf3b9f89a6ee064a59b1bb84326 (patch) | |
| tree | da0a6d48db55b43982988a91a3e4b738558ea7c8 /sys/modules/netgraph/tty | |
| parent | 0fe9a7da10f555dd75c1e5647e14b4dfa3c86c4e (diff) | |
Notes
Diffstat (limited to 'sys/modules/netgraph/tty')
| -rw-r--r-- | sys/modules/netgraph/tty/ng_tty.4 | 18 | ||||
| -rw-r--r-- | sys/modules/netgraph/tty/ng_tty.8 | 18 |
2 files changed, 8 insertions, 28 deletions
diff --git a/sys/modules/netgraph/tty/ng_tty.4 b/sys/modules/netgraph/tty/ng_tty.4 index 660b46c2c5af..53141160ff53 100644 --- a/sys/modules/netgraph/tty/ng_tty.4 +++ b/sys/modules/netgraph/tty/ng_tty.4 @@ -42,14 +42,16 @@ .Nm ng_tty .Nd netgraph node type that is also a line discipline .Sh SYNOPSIS +.Fd #include <sys/ttycom.h> .Fd #include <netgraph/ng_message.h> .Fd #include <netgraph/ng_tty.h> .Sh DESCRIPTION The .Nm tty node type is both a netgraph node type and a line discipline. -A new node is created when the corresponding line discipline is -registered on a tty device (see +A new node is created when the corresponding line discipline, +.Dv NETGRAPHDISC , +is registered on a tty device (see .Xr tty 4 ")." .Pp The node has a single hook called @@ -112,18 +114,6 @@ The control message is not valid, and always returns the error .Er EOPNOTSUPP . .Sh BUGS -The -.Nm tty -type registers its line discipline when the type is installed, -where it is dynamically assigned an integer index. -Unfortunately, there's no way to know what this integer is -except by reading the output of -.Xr dmesg 8 . -The fix for this is to have line disciplines identified by -unique ASCII strings instead of fixed integer constants, -or else to assign one of those constants to -.Nm ng_tty . -.Pp The serial driver code also has a notion of a ``hot character.'' Unfortunately, this value is statically defined in terms of the line discipline and cannot be changed. diff --git a/sys/modules/netgraph/tty/ng_tty.8 b/sys/modules/netgraph/tty/ng_tty.8 index 660b46c2c5af..53141160ff53 100644 --- a/sys/modules/netgraph/tty/ng_tty.8 +++ b/sys/modules/netgraph/tty/ng_tty.8 @@ -42,14 +42,16 @@ .Nm ng_tty .Nd netgraph node type that is also a line discipline .Sh SYNOPSIS +.Fd #include <sys/ttycom.h> .Fd #include <netgraph/ng_message.h> .Fd #include <netgraph/ng_tty.h> .Sh DESCRIPTION The .Nm tty node type is both a netgraph node type and a line discipline. -A new node is created when the corresponding line discipline is -registered on a tty device (see +A new node is created when the corresponding line discipline, +.Dv NETGRAPHDISC , +is registered on a tty device (see .Xr tty 4 ")." .Pp The node has a single hook called @@ -112,18 +114,6 @@ The control message is not valid, and always returns the error .Er EOPNOTSUPP . .Sh BUGS -The -.Nm tty -type registers its line discipline when the type is installed, -where it is dynamically assigned an integer index. -Unfortunately, there's no way to know what this integer is -except by reading the output of -.Xr dmesg 8 . -The fix for this is to have line disciplines identified by -unique ASCII strings instead of fixed integer constants, -or else to assign one of those constants to -.Nm ng_tty . -.Pp The serial driver code also has a notion of a ``hot character.'' Unfortunately, this value is statically defined in terms of the line discipline and cannot be changed. |
