diff options
author | tmm <tmm@FreeBSD.org> | 2001-08-04 18:09:24 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-08-04 18:09:24 +0000 |
commit | fb501835eb47e231e6b2d8920c356d3f67c98853 (patch) | |
tree | 022f8f8ad05e28d06766496084c71959c221ee3f /sys/kern/tty.c | |
parent | 77704f41cdea005959ec441c3728a500a02017d1 (diff) | |
download | FreeBSD-src-fb501835eb47e231e6b2d8920c356d3f67c98853.zip FreeBSD-src-fb501835eb47e231e6b2d8920c356d3f67c98853.tar.gz |
Export the tk_nin and tk_nout variables (number of tty input/output
characters) as sysctls (kern.tty_nin and kern.tty_nout).
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 4086acd..8d56bb3 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2538,6 +2538,10 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_kern, OID_AUTO, ttys, CTLTYPE_OPAQUE|CTLFLAG_RD, 0, 0, sysctl_kern_ttys, "S,tty", "All struct ttys"); +SYSCTL_LONG(_kern, OID_AUTO, tty_nin, CTLFLAG_RD, + &tk_nin, 0, "Total TTY in characters"); +SYSCTL_LONG(_kern, OID_AUTO, tty_nout, CTLFLAG_RD, + &tk_nout, 0, "Total TTY out characters"); void nottystop(tp, rw) |