summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2003-06-09 10:54:23 +0000
committerjmallett <jmallett@FreeBSD.org>2003-06-09 10:54:23 +0000
commit05e817b7af542a8270866d9a6fa39fe46588e4e4 (patch)
treeacf31497b3a96a3319f9cf5b0b92e73df9ab5dc2 /sys
parent7bf8495ee2bb7b569c2d00bb754fde028866a17b (diff)
downloadFreeBSD-src-05e817b7af542a8270866d9a6fa39fe46588e4e4.zip
FreeBSD-src-05e817b7af542a8270866d9a6fa39fe46588e4e4.tar.gz
Expose kern.ident by way of OID_AUTO.
Requested by: phk
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_mib.c3
-rw-r--r--sys/sys/sysctl.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c
index 4a6d38c..6e236f6 100644
--- a/sys/kern/kern_mib.c
+++ b/sys/kern/kern_mib.c
@@ -85,6 +85,9 @@ SYSCTL_NODE(, OID_AUTO, regression, CTLFLAG_RW, 0,
"Regression test MIB");
#endif
+SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD,
+ ident, 0, "Kernel identifier");
+
SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD,
osrelease, 0, "Operating system release");
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 7cbc2c2..68e6659 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -354,8 +354,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry);
#define KERN_USRSTACK 33 /* int: address of USRSTACK */
#define KERN_LOGSIGEXIT 34 /* int: do we log sigexit procs? */
#define KERN_IOV_MAX 35 /* int: value of UIO_MAXIOV */
-#define KERN_IDENT 36 /* string: kernel ident */
-#define KERN_MAXID 37 /* number of valid kern ids */
+#define KERN_MAXID 36 /* number of valid kern ids */
#define CTL_KERN_NAMES { \
{ 0, 0 }, \
@@ -393,7 +392,6 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry);
{ "usrstack", CTLTYPE_INT }, \
{ "logsigexit", CTLTYPE_INT }, \
{ "iov_max", CTLTYPE_INT }, \
- { "ident", CTLTYPE_STRING }, \
}
/*
OpenPOWER on IntegriCloud