Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Remaining sysctl descriptions under kern subtree



details:   https://anonhg.NetBSD.org/src/rev/97fd63f1e88e
branches:  trunk
changeset: 566935:97fd63f1e88e
user:      atatat <atatat%NetBSD.org@localhost>
date:      Tue May 25 04:30:32 2004 +0000

description:
Remaining sysctl descriptions under kern subtree

diffstat:

 sys/kern/tty.c         |  20 +++++++++++++-------
 sys/kern/uipc_mbuf.c   |  28 ++++++++++++++++++----------
 sys/kern/uipc_socket.c |   8 +++++---
 sys/kern/vfs_bio.c     |  23 ++++++++++++++++-------
 4 files changed, 52 insertions(+), 27 deletions(-)

diffs (229 lines):

diff -r d7d622549c2e -r 97fd63f1e88e sys/kern/tty.c
--- a/sys/kern/tty.c    Tue May 25 04:29:08 2004 +0000
+++ b/sys/kern/tty.c    Tue May 25 04:30:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.167 2004/04/25 16:42:41 simonb Exp $ */
+/*     $NetBSD: tty.c,v 1.168 2004/05/25 04:30:32 atatat Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.167 2004/04/25 16:42:41 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.168 2004/05/25 04:30:32 atatat Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -189,28 +189,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);
 }
diff -r d7d622549c2e -r 97fd63f1e88e sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Tue May 25 04:29:08 2004 +0000
+++ b/sys/kern/uipc_mbuf.c      Tue May 25 04:30:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.81 2004/04/22 01:01:40 matt Exp $      */
+/*     $NetBSD: uipc_mbuf.c,v 1.82 2004/05/25 04:30:32 atatat Exp $    */
 
 /*-
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.81 2004/04/22 01:01:40 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.82 2004/05/25 04:30:32 atatat Exp $");
 
 #include "opt_mbuftrace.h"
 
@@ -282,44 +282,52 @@
                       CTL_KERN, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "mbuf", NULL,
+                      CTLTYPE_NODE, "mbuf",
+                      SYSCTL_DESCR("mbuf control variables"),
                       NULL, 0, NULL, 0,
                       CTL_KERN, KERN_MBUF, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
-                      CTLTYPE_INT, "msize", NULL,
+                      CTLTYPE_INT, "msize",
+                      SYSCTL_DESCR("mbuf base size"),
                       NULL, msize, NULL, 0,
                       CTL_KERN, KERN_MBUF, MBUF_MSIZE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
-                      CTLTYPE_INT, "mclbytes", NULL,
+                      CTLTYPE_INT, "mclbytes",
+                      SYSCTL_DESCR("mbuf cluster size"),
                       NULL, mclbytes, NULL, 0,
                       CTL_KERN, KERN_MBUF, MBUF_MCLBYTES, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "nmbclusters", NULL,
+                      CTLTYPE_INT, "nmbclusters",
+                      SYSCTL_DESCR("Limit on the number of mbuf clusters"),
                       sysctl_kern_mbuf, 0, &nmbclusters, 0,
                       CTL_KERN, KERN_MBUF, MBUF_NMBCLUSTERS, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "mblowat", NULL,
+                      CTLTYPE_INT, "mblowat",
+                      SYSCTL_DESCR("mbuf low water mark"),
                       sysctl_kern_mbuf, 0, &mblowat, 0,
                       CTL_KERN, KERN_MBUF, MBUF_MBLOWAT, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "mcllowat", NULL,
+                      CTLTYPE_INT, "mcllowat",
+                      SYSCTL_DESCR("mbuf cluster low water mark"),
                       sysctl_kern_mbuf, 0, &mcllowat, 0,
                       CTL_KERN, KERN_MBUF, MBUF_MCLLOWAT, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_STRUCT, "stats", NULL,
+                      CTLTYPE_STRUCT, "stats",
+                      SYSCTL_DESCR("mbuf allocation statistics"),
                       NULL, 0, &mbstat, sizeof(mbstat),
                       CTL_KERN, KERN_MBUF, MBUF_STATS, CTL_EOL);
 #ifdef MBUFTRACE
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_STRUCT, "mowners", NULL,
+                      CTLTYPE_STRUCT, "mowners",
+                      SYSCTL_DESCR("Information about mbuf owners"),
                       sysctl_kern_mbuf_mowners, 0, NULL, 0,
                       CTL_KERN, KERN_MBUF, MBUF_MOWNERS, CTL_EOL);
 #endif /* MBUFTRACE */
diff -r d7d622549c2e -r 97fd63f1e88e sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Tue May 25 04:29:08 2004 +0000
+++ b/sys/kern/uipc_socket.c    Tue May 25 04:30:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.102 2004/05/22 22:52:13 jonathan Exp $       */
+/*     $NetBSD: uipc_socket.c,v 1.103 2004/05/25 04:30:32 atatat Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.102 2004/05/22 22:52:13 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.103 2004/05/25 04:30:32 atatat Exp $");
 
 #include "opt_sock_counters.h"
 #include "opt_sosend_loan.h"
@@ -1773,7 +1773,9 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "somaxkva", NULL,
+                      CTLTYPE_INT, "somaxkva",
+                      SYSCTL_DESCR("Maximum amount of kernel memory to be "
+                                   "used for socket buffers"),
                       sysctl_kern_somaxkva, 0, NULL, 0,
                       CTL_KERN, KERN_SOMAXKVA, CTL_EOL);
 }
diff -r d7d622549c2e -r 97fd63f1e88e sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Tue May 25 04:29:08 2004 +0000
+++ b/sys/kern/vfs_bio.c        Tue May 25 04:30:32 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.124 2004/04/25 12:41:12 yamt Exp $       */
+/*     $NetBSD: vfs_bio.c,v 1.125 2004/05/25 04:30:33 atatat Exp $     */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -81,7 +81,7 @@
 #include "opt_softdep.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.124 2004/04/25 12:41:12 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.125 2004/05/25 04:30:33 atatat Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1601,7 +1601,8 @@
                       CTL_KERN, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "buf", NULL,
+                      CTLTYPE_NODE, "buf",
+                      SYSCTL_DESCR("Kernel buffer cache information"),
                       sysctl_dobuf, 0, NULL, 0,
                       CTL_KERN, KERN_BUF, CTL_EOL);
 }
@@ -1617,22 +1618,30 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "bufcache", NULL,
+                      CTLTYPE_INT, "bufcache",
+                      SYSCTL_DESCR("Percentage of kernel memory to use for "
+                                   "buffer cache"),
                       sysctl_bufvm_update, 0, &bufcache, 0,
                       CTL_VM, CTL_CREATE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READONLY,
-                      CTLTYPE_INT, "bufmem", NULL,
+                      CTLTYPE_INT, "bufmem",
+                      SYSCTL_DESCR("Amount of kernel memory used by buffer "
+                                   "cache"),
                       NULL, 0, &bufmem, 0,
                       CTL_VM, CTL_CREATE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "bufmem_lowater", NULL,
+                      CTLTYPE_INT, "bufmem_lowater",
+                      SYSCTL_DESCR("Minimum amount of kernel memory to "
+                                   "reserve for buffer cache"),
                       sysctl_bufvm_update, 0, &bufmem_lowater, 0,
                       CTL_VM, CTL_CREATE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "bufmem_hiwater", NULL,
+                      CTLTYPE_INT, "bufmem_hiwater",
+                      SYSCTL_DESCR("Maximum amount of kernel memory to use "
+                                   "for buffer cache"),
                       sysctl_bufvm_update, 0, &bufmem_hiwater, 0,
                       CTL_VM, CTL_CREATE, CTL_EOL);
 }



Home | Main Index | Thread Index | Old Index