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.125 (requested by atatat in...



details:   https://anonhg.NetBSD.org/src/rev/090e55051f82
branches:  netbsd-2-0
changeset: 561119:090e55051f82
user:      he <he%NetBSD.org@localhost>
date:      Wed May 26 20:15:02 2004 +0000

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

diffstat:

 sys/kern/vfs_bio.c |  23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 2ad1c6f3e1c7 -r 090e55051f82 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Wed May 26 20:14:40 2004 +0000
+++ b/sys/kern/vfs_bio.c        Wed May 26 20:15:02 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.122 2004/03/26 00:31:55 simonb Exp $     */
+/*     $NetBSD: vfs_bio.c,v 1.122.2.1 2004/05/26 20:15:02 he 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.122 2004/03/26 00:31:55 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.122.2.1 2004/05/26 20:15:02 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1583,7 +1583,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);
 }
@@ -1599,22 +1600,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