Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2008 23:49:54 +0000 (UTC)
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186619 - head/sys/kern
Message-ID:  <200812302349.mBUNnsKm009162@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ivoras
Date: Tue Dec 30 23:49:54 2008
New Revision: 186619
URL: http://svn.freebsd.org/changeset/base/186619

Log:
  Document the relationship between enum VM_GUEST and the vm_guest_sysctl_names
  array.
  
  Approved by:	gnn (original version)

Modified:
  head/sys/kern/subr_param.c

Modified: head/sys/kern/subr_param.c
==============================================================================
--- head/sys/kern/subr_param.c	Tue Dec 30 21:52:18 2008	(r186618)
+++ head/sys/kern/subr_param.c	Tue Dec 30 23:49:54 2008	(r186619)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812302349.mBUNnsKm009162>