From 98a443118149b89901602d5c76384eeff0f9f782 Mon Sep 17 00:00:00 2001 From: Ivan Voras Date: Tue, 30 Dec 2008 23:49:54 +0000 Subject: [PATCH] Document the relationship between enum VM_GUEST and the vm_guest_sysctl_names array. Approved by: gnn (original version) --- sys/kern/subr_param.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 67fe14ddb219..f626ddbe2021 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);