summaryrefslogtreecommitdiffstats
path: root/sys/vm/_vm_radix.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-03-13 01:02:11 +0000
committerattilio <attilio@FreeBSD.org>2013-03-13 01:02:11 +0000
commit3b0a5f04197e604493d1d77a8dd8e771feb3def5 (patch)
tree187a55f0f5c180854428f9ce51871ca120c35dd3 /sys/vm/_vm_radix.h
parent02cf10e6dbf6a8df23cfe420b6ee2de2afe79b71 (diff)
downloadFreeBSD-src-3b0a5f04197e604493d1d77a8dd8e771feb3def5.zip
FreeBSD-src-3b0a5f04197e604493d1d77a8dd8e771feb3def5.tar.gz
Use the _KERNEL protectors.
Sponsored by: EMC / Isilon storage division Requested by: alc
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 4c64e37..07b035e 100644
--- a/sys/vm/_vm_radix.h
+++ b/sys/vm/_vm_radix.h
@@ -37,6 +37,8 @@ struct vm_radix {
uintptr_t rt_root;
};
+#ifdef _KERNEL
+
static __inline boolean_t
vm_radix_is_empty(struct vm_radix *rtree)
{
@@ -44,4 +46,5 @@ vm_radix_is_empty(struct vm_radix *rtree)
return (rtree->rt_root == 0);
}
+#endif /* _KERNEL */
#endif /* !__VM_RADIX_H_ */
OpenPOWER on IntegriCloud