summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_fault.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-03-25 20:00:19 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-03-25 20:00:19 +0000
commit3b9207b010a465a159335b6f30f6467e258b7973 (patch)
treef62be26e5f5b9df508e11cbcc08f32587d905de2 /sys/uvm/uvm_fault.h
parent8286cd18f68c14418cc7b15e91da56cd157a0c47 (diff)
Move all of the pseudo-inline functions in uvm into C files.
By pseudo-inline, I mean that if a certain macro was defined, they would be inlined. However, no architecture defines that, and none has for a very very long time. Therefore mainly this just makes the code a damned sight easier to read. Some k&r -> ansi declarations while I'm in there. "just commit it" art@. ok weingart@.
Diffstat (limited to 'sys/uvm/uvm_fault.h')
-rw-r--r--sys/uvm/uvm_fault.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/uvm/uvm_fault.h b/sys/uvm/uvm_fault.h
index ddcb3e02c7e..dd19cdf9262 100644
--- a/sys/uvm/uvm_fault.h
+++ b/sys/uvm/uvm_fault.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_fault.h,v 1.12 2002/03/14 01:27:18 millert Exp $ */
+/* $OpenBSD: uvm_fault.h,v 1.13 2009/03/25 20:00:18 oga Exp $ */
/* $NetBSD: uvm_fault.h,v 1.14 2000/06/26 14:21:17 mrg Exp $ */
/*
@@ -73,12 +73,16 @@ struct uvm_faultinfo {
*/
-int uvmfault_anonget(struct uvm_faultinfo *, struct vm_amap *,
- struct vm_anon *);
+boolean_t uvmfault_lookup(struct uvm_faultinfo *, boolean_t);
+boolean_t uvmfault_relock(struct uvm_faultinfo *);
+void uvmfault_unlockall(struct uvm_faultinfo *, struct vm_amap *,
+ struct uvm_object *, struct vm_anon *);
+int uvmfault_anonget(struct uvm_faultinfo *, struct vm_amap *,
+ struct vm_anon *);
-int uvm_fault_wire(vm_map_t, vaddr_t, vaddr_t, vm_prot_t);
-void uvm_fault_unwire(vm_map_t, vaddr_t, vaddr_t);
-void uvm_fault_unwire_locked(vm_map_t, vaddr_t, vaddr_t);
+int uvm_fault_wire(vm_map_t, vaddr_t, vaddr_t, vm_prot_t);
+void uvm_fault_unwire(vm_map_t, vaddr_t, vaddr_t);
+void uvm_fault_unwire_locked(vm_map_t, vaddr_t, vaddr_t);
#endif /* _KERNEL */