Export the tk_nin and tk_nout variables (number of tty input/output
characters) as sysctls (kern.tty_nin and kern.tty_nout).
This commit is contained in:
parent
938a4e5c0c
commit
12543b2e98
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user