Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat Sysctl descriptions under emul subtree.
details: https://anonhg.NetBSD.org/src/rev/d7d622549c2e
branches: trunk
changeset: 566934:d7d622549c2e
user: atatat <atatat%NetBSD.org@localhost>
date: Tue May 25 04:29:08 2004 +0000
description:
Sysctl descriptions under emul subtree.
diffstat:
sys/compat/darwin/darwin_sysctl.c | 28 +++++++++++++++--------
sys/compat/irix/irix_sysctl.c | 39 +++++++++++++++++++++------------
sys/compat/linux/common/linux_sysctl.c | 19 ++++++++++------
3 files changed, 55 insertions(+), 31 deletions(-)
diffs (260 lines):
diff -r 5eb285919c2a -r d7d622549c2e sys/compat/darwin/darwin_sysctl.c
--- a/sys/compat/darwin/darwin_sysctl.c Tue May 25 04:00:33 2004 +0000
+++ b/sys/compat/darwin/darwin_sysctl.c Tue May 25 04:29:08 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: darwin_sysctl.c,v 1.25 2004/04/25 05:54:38 atatat Exp $ */
+/* $NetBSD: darwin_sysctl.c,v 1.26 2004/05/25 04:29:08 atatat Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: darwin_sysctl.c,v 1.25 2004/04/25 05:54:38 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_sysctl.c,v 1.26 2004/05/25 04:29:08 atatat Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -341,24 +341,28 @@
CTL_EMUL, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "darwin", NULL,
+ CTLTYPE_NODE, "darwin",
+ SYSCTL_DESCR("Darwin emulation settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_DARWIN, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "init", NULL,
+ CTLTYPE_NODE, "init",
+ SYSCTL_DESCR("Darwin init(8) process settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_DARWIN,
EMUL_DARWIN_INIT, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "ioframebuffer", NULL,
+ CTLTYPE_NODE, "ioframebuffer",
+ SYSCTL_DESCR("Darwin framebuffer settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_DARWIN,
EMUL_DARWIN_IOFRAMEBUFFER, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "iohidsystem", NULL,
+ CTLTYPE_NODE, "iohidsystem",
+ SYSCTL_DESCR("Darwin HID system settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_DARWIN,
EMUL_DARWIN_IOHIDSYSTEM, CTL_EOL);
@@ -367,25 +371,29 @@
*/
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_INT, "pid", NULL,
+ CTLTYPE_INT, "pid",
+ SYSCTL_DESCR("Pid of Darwin init(8) process"),
NULL, 0, &darwin_init_pid, 0,
CTL_EMUL, EMUL_DARWIN, EMUL_DARWIN_INIT,
EMUL_DARWIN_INIT_PID, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_INT, "unit", NULL,
+ CTLTYPE_INT, "unit",
+ SYSCTL_DESCR("Darwin framebuffer unit number"),
NULL, 0, &darwin_ioframebuffer_unit, 0,
CTL_EMUL, EMUL_DARWIN, EMUL_DARWIN_IOFRAMEBUFFER,
EMUL_DARWIN_IOFRAMEBUFFER_UNIT, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_INT, "screen", NULL,
+ CTLTYPE_INT, "screen",
+ SYSCTL_DESCR("Darwin framebuffer screen number"),
NULL, 0, &darwin_ioframebuffer_screen, 0,
CTL_EMUL, EMUL_DARWIN, EMUL_DARWIN_IOFRAMEBUFFER,
EMUL_DARWIN_IOFRAMEBUFFER_SCREEN, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_INT, "mux", NULL,
+ CTLTYPE_INT, "mux",
+ SYSCTL_DESCR("Darwin HID system mux"),
NULL, 0, &darwin_iohidsystem_mux, 0,
CTL_EMUL, EMUL_DARWIN, EMUL_DARWIN_IOHIDSYSTEM,
EMUL_DARWIN_IOHIDSYSTEM_MUX, CTL_EOL);
diff -r 5eb285919c2a -r d7d622549c2e sys/compat/irix/irix_sysctl.c
--- a/sys/compat/irix/irix_sysctl.c Tue May 25 04:00:33 2004 +0000
+++ b/sys/compat/irix/irix_sysctl.c Tue May 25 04:29:08 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_sysctl.c,v 1.3 2004/03/24 15:34:52 atatat Exp $ */
+/* $NetBSD: irix_sysctl.c,v 1.4 2004/05/25 04:29:08 atatat Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_sysctl.c,v 1.3 2004/03/24 15:34:52 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_sysctl.c,v 1.4 2004/05/25 04:29:08 atatat Exp $");
#include <sys/param.h>
#include <sys/signal.h>
@@ -45,7 +45,7 @@
#include <compat/irix/irix_sysctl.h>
-SYSCTL_SETUP(sysctl_irix_setup, "sysctl emul.irix subtree setup")
+SYSCTL_SETUP(sysctl_emul_irix_setup, "sysctl emul.irix subtree setup")
{
sysctl_createv(clog, 0, NULL, NULL,
@@ -55,66 +55,77 @@
CTL_EMUL, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "irix", NULL,
+ CTLTYPE_NODE, "irix",
+ SYSCTL_DESCR("IRIX emulation settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_IRIX, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "kern", NULL,
+ CTLTYPE_NODE, "kern",
+ SYSCTL_DESCR("IRIX kernel emulation settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "vendor", NULL,
+ CTLTYPE_STRING, "vendor",
+ SYSCTL_DESCR("Emulated IRIX vendor name"),
NULL, 0, irix_si_vendor, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_VENDOR, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osprovider", NULL,
+ CTLTYPE_STRING, "osprovider",
+ SYSCTL_DESCR("Emulated IRIX system manufacturer"),
NULL, 0, irix_si_os_provider, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_OSPROVIDER, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osname", NULL,
+ CTLTYPE_STRING, "osname",
+ SYSCTL_DESCR("Emulated IRIX operating system name"),
NULL, 0, irix_si_os_name, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_OSNAME, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "hwname", NULL,
+ CTLTYPE_STRING, "hwname",
+ SYSCTL_DESCR("Emulated IRIX system type"),
NULL, 0, irix_si_hw_name, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_HWNAME, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osrelmaj", NULL,
+ CTLTYPE_STRING, "osrelmaj",
+ SYSCTL_DESCR("Emulated IRIX major release number"),
NULL, 0, irix_si_osrel_maj, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_OSRELMAJ, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osrelmin", NULL,
+ CTLTYPE_STRING, "osrelmin",
+ SYSCTL_DESCR("Emulated IRIX minor release number"),
NULL, 0, irix_si_osrel_min, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_OSRELMIN, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osrelpatch", NULL,
+ CTLTYPE_STRING, "osrelpatch",
+ SYSCTL_DESCR("Emulated IRIX patch level"),
NULL, 0, irix_si_osrel_patch, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_OSRELPATCH, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "processor", NULL,
+ CTLTYPE_STRING, "processor",
+ SYSCTL_DESCR("Emulated IRIX processor type"),
NULL, 0, irix_si_processors, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_PROCESSOR, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "version", NULL,
+ CTLTYPE_STRING, "version",
+ SYSCTL_DESCR("Emulated IRIX version number"),
NULL, 0, irix_si_version, 128,
CTL_EMUL, EMUL_IRIX, EMUL_IRIX_KERN,
EMUL_IRIX_KERN_VERSION, CTL_EOL);
diff -r 5eb285919c2a -r d7d622549c2e sys/compat/linux/common/linux_sysctl.c
--- a/sys/compat/linux/common/linux_sysctl.c Tue May 25 04:00:33 2004 +0000
+++ b/sys/compat/linux/common/linux_sysctl.c Tue May 25 04:29:08 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysctl.c,v 1.15 2004/05/20 06:34:24 atatat Exp $ */
+/* $NetBSD: linux_sysctl.c,v 1.16 2004/05/25 04:29:08 atatat Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.15 2004/05/20 06:34:24 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.16 2004/05/25 04:29:08 atatat Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -202,30 +202,35 @@
CTL_EMUL, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "linux", NULL,
+ CTLTYPE_NODE, "linux",
+ SYSCTL_DESCR("Linux emulation settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_LINUX, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
- CTLTYPE_NODE, "kern", NULL,
+ CTLTYPE_NODE, "kern",
+ SYSCTL_DESCR("Linux kernel emulation settings"),
NULL, 0, NULL, 0,
CTL_EMUL, EMUL_LINUX, EMUL_LINUX_KERN, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "ostype", NULL,
+ CTLTYPE_STRING, "ostype",
+ SYSCTL_DESCR("Linux operating system type"),
NULL, 0, linux_sysname, sizeof(linux_sysname),
CTL_EMUL, EMUL_LINUX, EMUL_LINUX_KERN,
EMUL_LINUX_KERN_OSTYPE, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osrelease", NULL,
+ CTLTYPE_STRING, "osrelease",
+ SYSCTL_DESCR("Linux operating system release"),
NULL, 0, linux_release, sizeof(linux_release),
CTL_EMUL, EMUL_LINUX, EMUL_LINUX_KERN,
EMUL_LINUX_KERN_OSRELEASE, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_STRING, "osversion", NULL,
+ CTLTYPE_STRING, "osversion",
+ SYSCTL_DESCR("Linux operating system revision"),
NULL, 0, linux_version, sizeof(linux_version),
CTL_EMUL, EMUL_LINUX, EMUL_LINUX_KERN,
EMUL_LINUX_KERN_VERSION, CTL_EOL);
Home |
Main Index |
Thread Index |
Old Index