Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/kern Pull up revision 1.168 (requested by atatat in...



details:   https://anonhg.NetBSD.org/src/rev/9b5b20e8a2f2
branches:  netbsd-2-0
changeset: 561116:9b5b20e8a2f2
user:      he <he%NetBSD.org@localhost>
date:      Wed May 26 20:13:56 2004 +0000

description:
Pull up revision 1.168 (requested by atatat in ticket #388):
  Add remaining sysctl descriptions under kern subtree.

diffstat:

 sys/kern/tty.c |  20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r b8aa783f6a5c -r 9b5b20e8a2f2 sys/kern/tty.c
--- a/sys/kern/tty.c    Wed May 26 20:06:30 2004 +0000
+++ b/sys/kern/tty.c    Wed May 26 20:13:56 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.165 2004/03/24 15:34:53 atatat Exp $ */
+/*     $NetBSD: tty.c,v 1.165.2.1 2004/05/26 20:13:56 he Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.165 2004/03/24 15:34:53 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.165.2.1 2004/05/26 20:13:56 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -188,28 +188,34 @@
                       CTL_KERN, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "tkstat", NULL,
+                      CTLTYPE_NODE, "tkstat",
+                      SYSCTL_DESCR("Number of characters sent and and "
+                                   "received on ttys"),
                       NULL, 0, NULL, 0,
                       CTL_KERN, KERN_TKSTAT, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_QUAD, "nin", NULL,
+                      CTLTYPE_QUAD, "nin",
+                      SYSCTL_DESCR("Total number of tty input characters"),
                       NULL, 0, &tk_nin, 0,
                       CTL_KERN, KERN_TKSTAT, KERN_TKSTAT_NIN, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_QUAD, "nout", NULL,
+                      CTLTYPE_QUAD, "nout",
+                      SYSCTL_DESCR("Total number of tty output characters"),
                       NULL, 0, &tk_nout, 0,
                       CTL_KERN, KERN_TKSTAT, KERN_TKSTAT_NOUT, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_QUAD, "cancc", NULL,
+                      CTLTYPE_QUAD, "cancc",
+                      SYSCTL_DESCR("Number of canonical tty input characters"),
                       NULL, 0, &tk_cancc, 0,
                       CTL_KERN, KERN_TKSTAT, KERN_TKSTAT_CANCC, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_QUAD, "rawcc", NULL,
+                      CTLTYPE_QUAD, "rawcc",
+                      SYSCTL_DESCR("Number of raw tty input characters"),
                       NULL, 0, &tk_rawcc, 0,
                       CTL_KERN, KERN_TKSTAT, KERN_TKSTAT_RAWCC, CTL_EOL);
 }



Home | Main Index | Thread Index | Old Index