Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Document the new kern.tkstat.* sysctls.



details:   https://anonhg.NetBSD.org/src/rev/13c8b69c6034
branches:  trunk
changeset: 521311:13c8b69c6034
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jan 28 02:07:01 2002 +0000

description:
Document the new kern.tkstat.* sysctls.

diffstat:

 lib/libc/gen/sysctl.3 |  28 +++++++++++++++++++++++++++-
 sbin/sysctl/sysctl.8  |   6 +++++-
 2 files changed, 32 insertions(+), 2 deletions(-)

diffs (76 lines):

diff -r dfe54219e04c -r 13c8b69c6034 lib/libc/gen/sysctl.3
--- a/lib/libc/gen/sysctl.3     Mon Jan 28 02:06:02 2002 +0000
+++ b/lib/libc/gen/sysctl.3     Mon Jan 28 02:07:01 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sysctl.3,v 1.83 2002/01/27 12:41:07 simonb Exp $
+.\"    $NetBSD: sysctl.3,v 1.84 2002/01/28 02:07:01 simonb Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -318,6 +318,7 @@
 .It KERN\_SYSVMSG      integer no
 .It KERN\_SYSVSEM      integer no
 .It KERN\_SYSVSHM      integer no
+.It KERN\_TKSTAT       node    not applicable
 .It KERN\_VERSION      string  no
 .It KERN\_VNODE        struct vnode    no
 .El
@@ -427,6 +428,7 @@
 The changeable column shows whether a process with appropriate
 privilege may change the value.
 .Bl -column "MBUFXNMBCLUSTERSXXX" "struct integerXXX" -offset indent
+.It Sy Pa Third level name     Type    Changeable
 .It MBUF\_MSIZE        integer yes
 .It MBUF\_MCLBYTES     integer yes
 .It MBUF\_NMBCLUSTERS  integer yes
@@ -615,6 +617,30 @@
 Returns 1 if System V style share memory functionality is available
 on this system,
 otherwise 0.
+.It Li KERN_TKSTAT
+Return information about the number of characters sent and received
+on ttys.  The third level names for the tty statistic variables
+are detailed below.  The changeable column shows whether a process
+with appropriate privilege may change the value.
+.Bl -column "KERNXTKSTATXRAWCCXXX" "struct integerXXX" -offset indent
+.It Sy Pa Third level name     Type    Changeable
+.It KERN\_TKSTAT\_NIN  quad    no
+.It KERN\_TKSTAT\_NOUT quad    no
+.It KERN\_TKSTAT\_CANCC        quad    no
+.It KERN\_TKSTAT\_RAWCC        quad    no
+.El
+.Pp
+The variables are as follows:
+.Bl -tag -width "123456"
+.It Li KERN_TKSTAT_NIN
+The total number of input characters.
+.It Li KERN_TKSTAT_NOUT
+The total number of output characters.
+.It Li KERN_TKSTAT_CANCC
+The number of canonical input characters.
+.It Li KERN_TKSTAT_RAWCC
+The number of raw input characters.
+.El
 .It Li KERN_VERSION
 The system version string.
 .It Li KERN_VNODE
diff -r dfe54219e04c -r 13c8b69c6034 sbin/sysctl/sysctl.8
--- a/sbin/sysctl/sysctl.8      Mon Jan 28 02:06:02 2002 +0000
+++ b/sbin/sysctl/sysctl.8      Mon Jan 28 02:07:01 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sysctl.8,v 1.72 2002/01/27 13:04:21 simonb Exp $
+.\"    $NetBSD: sysctl.8,v 1.73 2002/01/28 02:07:02 simonb Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -211,6 +211,10 @@
 .It kern.sysvmsg       integer no
 .It kern.sysvsem       integer no
 .It kern.sysvshm       integer no
+.It kern.tkstat.nin    quad    no
+.It kern.tkstat.nout   quad    no
+.It kern.tkstat.cancc  quad    no
+.It kern.tkstat.rawcc  quad    no
 .It kern.vdisable      integer no
 .It kern.version       string  no
 .It machdep.console_device     dev_t   no



Home | Main Index | Thread Index | Old Index