summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_extern.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r--sys/uvm/uvm_extern.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index 03f727e2047..742d3e63732 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.8 2001/01/29 02:07:43 niklas Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.9 2001/03/09 05:34:38 smart Exp $ */
/* $NetBSD: uvm_extern.h,v 1.27 1999/05/26 19:16:36 thorpej Exp $ */
/*
@@ -243,6 +243,7 @@ struct uvmexp {
struct uvm_object *mb_object;
};
+#ifdef _KERNEL
extern struct uvmexp uvmexp;
@@ -254,6 +255,8 @@ extern struct uvmexp uvmexp;
#define uvm_km_zalloc(MAP,SIZE) uvm_km_alloc1(MAP,SIZE,TRUE)
#define uvm_km_alloc(MAP,SIZE) uvm_km_alloc1(MAP,SIZE,FALSE)
+#endif /* _KERNEL */
+
/*
* typedefs
*/
@@ -261,6 +264,8 @@ extern struct uvmexp uvmexp;
typedef unsigned int uvm_flag_t;
typedef int vm_fault_t;
+#ifdef _KERNEL
+
/* uvm_aobj.c */
struct uvm_object *uao_create __P((vsize_t, int));
void uao_detach __P((struct uvm_object *));
@@ -389,5 +394,6 @@ void uvm_vnp_terminate __P((struct vnode *));
boolean_t uvm_vnp_uncache __P((struct vnode *));
struct uvm_object *uvn_attach __P((void *, vm_prot_t));
-#endif /* _UVM_UVM_EXTERN_H_ */
+#endif /* _KERNEL */
+#endif /* _UVM_UVM_EXTERN_H_ */