summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_radix.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-11-01 03:53:10 +0000
committerattilio <attilio@FreeBSD.org>2011-11-01 03:53:10 +0000
commitf8c51624138d0f11981965fd53beafa90c087b24 (patch)
treef71a2a0216717c1400e49825fd0a2ac4d42f67d8 /sys/vm/vm_radix.h
parent7272c08497310c54604004d7a4080b2d0f66cc16 (diff)
downloadFreeBSD-src-f8c51624138d0f11981965fd53beafa90c087b24.zip
FreeBSD-src-f8c51624138d0f11981965fd53beafa90c087b24.tar.gz
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.
Diffstat (limited to 'sys/vm/vm_radix.h')
-rw-r--r--sys/vm/vm_radix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h
index b3dc962..76edbb7 100644
--- a/sys/vm/vm_radix.h
+++ b/sys/vm/vm_radix.h
@@ -50,6 +50,8 @@ CTASSERT(VM_RADIX_HEIGHT >= VM_RADIX_LIMIT);
((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 *rtree, vm_pindex_t index, int color)
return (NULL);
}
+#endif /* _KERNEL */
#endif /* !_VM_RADIX_H_ */
OpenPOWER on IntegriCloud