Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/ddb Pull up revision 1.31 (requested by atatat in t...



details:   https://anonhg.NetBSD.org/src/rev/d41c556ac788
branches:  netbsd-2-0
changeset: 561123:d41c556ac788
user:      tron <tron%NetBSD.org@localhost>
date:      Fri May 28 07:17:06 2004 +0000

description:
Pull up revision 1.31 (requested by atatat in ticket #390):
Sysctl descriptions under ddb subtree

diffstat:

 sys/ddb/db_variables.c |  26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diffs (71 lines):

diff -r ecb7f102e667 -r d41c556ac788 sys/ddb/db_variables.c
--- a/sys/ddb/db_variables.c    Fri May 28 07:15:26 2004 +0000
+++ b/sys/ddb/db_variables.c    Fri May 28 07:17:06 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_variables.c,v 1.30 2004/03/24 15:34:52 atatat Exp $ */
+/*     $NetBSD: db_variables.c,v 1.30.2.1 2004/05/28 07:17:06 tron Exp $       */
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_variables.c,v 1.30 2004/03/24 15:34:52 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_variables.c,v 1.30.2.1 2004/05/28 07:17:06 tron Exp $");
 
 #include "opt_ddbparam.h"
 
@@ -109,37 +109,45 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "radix", NULL,
+                      CTLTYPE_INT, "radix",
+                      SYSCTL_DESCR("Input and output radix"),
                       NULL, 0, &db_radix, 0,
                       CTL_DDB, DDBCTL_RADIX, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "maxoff", NULL,
+                      CTLTYPE_INT, "maxoff",
+                      SYSCTL_DESCR("Maximum symbol offset"),
                       NULL, 0, &db_maxoff, 0,
                       CTL_DDB, DDBCTL_MAXOFF, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "maxwidth", NULL,
+                      CTLTYPE_INT, "maxwidth",
+                      SYSCTL_DESCR("Maximum output line width"),
                       NULL, 0, &db_max_width, 0,
                       CTL_DDB, DDBCTL_MAXWIDTH, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "lines", NULL,
+                      CTLTYPE_INT, "lines",
+                      SYSCTL_DESCR("Number of display lines"),
                       NULL, 0, &db_max_line, 0,
                       CTL_DDB, DDBCTL_LINES, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "tabstops", NULL,
+                      CTLTYPE_INT, "tabstops",
+                      SYSCTL_DESCR("Output tab width"),
                       NULL, 0, &db_tab_stop_width, 0,
                       CTL_DDB, DDBCTL_TABSTOPS, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "onpanic", NULL,
+                      CTLTYPE_INT, "onpanic",
+                      SYSCTL_DESCR("Whether to enter ddb on a kernel panic"),
                       NULL, 0, &db_onpanic, 0,
                       CTL_DDB, DDBCTL_ONPANIC, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "fromconsole", NULL,
+                      CTLTYPE_INT, "fromconsole",
+                      SYSCTL_DESCR("Whether ddb can be entered from the "
+                                   "console"),
                       NULL, 0, &db_fromconsole, 0,
                       CTL_DDB, DDBCTL_FROMCONSOLE, CTL_EOL);
 }



Home | Main Index | Thread Index | Old Index