svn commit: r226981 - user/attilio/vmcontention/sys/vm
Attilio Rao
attilio at FreeBSD.org
Tue Nov 1 03:53:11 UTC 2011
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_ */
More information about the svn-src-user
mailing list