summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2008-12-30 23:49:54 +0000
committerivoras <ivoras@FreeBSD.org>2008-12-30 23:49:54 +0000
commit4136fd8892ca54d170af7f05f2235320a92cf4bf (patch)
tree1bb0ea5889b5dbf19e817493b3bad49d2cfcbe92 /sys
parentfa3b7c7db33a2028f30fda51026467492a6d7965 (diff)
downloadFreeBSD-src-4136fd8892ca54d170af7f05f2235320a92cf4bf.zip
FreeBSD-src-4136fd8892ca54d170af7f05f2235320a92cf4bf.tar.gz
Document the relationship between enum VM_GUEST and the vm_guest_sysctl_names
array. Approved by: gnn (original version)
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_param.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 67fe14d..f626ddb 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -73,7 +73,9 @@ __FBSDID("$FreeBSD$");
#define MAXFILES (maxproc * 2)
#endif
-enum VM_GUEST { VM_GUEST_NO, VM_GUEST_VM, VM_GUEST_XEN };
+/* Values of enum VM_GUEST members are used as indices in
+ * vm_guest_sysctl_names */
+enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN };
static int sysctl_kern_vm_guest(SYSCTL_HANDLER_ARGS);
OpenPOWER on IntegriCloud