Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Nov 2011 03:53:11 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r226981 - user/attilio/vmcontention/sys/vm
Message-ID:  <201111010353.pA13rBAb047499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Tue Nov  1 03:53:10 2011
New Revision: 226981
URL: http://svn.freebsd.org/changeset/base/226981

Log:
  Add kernel protection to the header file for vmradix.
  Likely this file needs some more restructuration (and we should
  make a lot of macros private to radix implementation) but leave them
  as they are so far because we may enrich the KPI much further.

Modified:
  user/attilio/vmcontention/sys/vm/vm_radix.h

Modified: user/attilio/vmcontention/sys/vm/vm_radix.h
==============================================================================
--- user/attilio/vmcontention/sys/vm/vm_radix.h	Tue Nov  1 03:40:38 2011	(r226980)
+++ user/attilio/vmcontention/sys/vm/vm_radix.h	Tue Nov  1 03:53:10 2011	(r226981)
@@ -50,6 +50,8 @@ CTASSERT(VM_RADIX_HEIGHT >= VM_RADIX_LIM
 	    ((h) == VM_RADIX_LIMIT ? ((vm_pindex_t)-1) :		\
 	    (((vm_pindex_t)1 << ((h) * VM_RADIX_WIDTH)) - 1))
 
+#ifdef _KERNEL
+
 struct vm_radix_node {
 	void		*rn_child[VM_RADIX_COUNT];	/* child nodes. */
     	uint16_t	rn_count;			/* Valid children. */
@@ -97,4 +99,5 @@ vm_radix_lookup_ge(struct vm_radix *rtre
         return (NULL);
 }
 
+#endif /* _KERNEL */
 #endif /* !_VM_RADIX_H_ */



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