diff options
Diffstat (limited to 'vm/vm_fault.h')
-rw-r--r-- | vm/vm_fault.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/vm/vm_fault.h b/vm/vm_fault.h index 5be18e5..0492ccf 100644 --- a/vm/vm_fault.h +++ b/vm/vm_fault.h @@ -33,6 +33,9 @@ #define _VM_VM_FAULT_H_ #include <mach/kern_return.h> +#include <mach/vm_prot.h> +#include <vm/vm_map.h> +#include <vm/vm_types.h> /* * Page fault handling based on vm_object only. @@ -46,19 +49,24 @@ typedef kern_return_t vm_fault_return_t; #define VM_FAULT_FICTITIOUS_SHORTAGE 4 #define VM_FAULT_MEMORY_ERROR 5 -extern void vm_fault_init(); -extern vm_fault_return_t vm_fault_page(); +extern void vm_fault_init(void); +extern vm_fault_return_t vm_fault_page(vm_object_t, vm_offset_t, vm_prot_t, + boolean_t, boolean_t, vm_prot_t *, + vm_page_t *, vm_page_t *, boolean_t, + void (*)()); -extern void vm_fault_cleanup(); +extern void vm_fault_cleanup(vm_object_t, vm_page_t); /* * Page fault handling based on vm_map (or entries therein) */ -extern kern_return_t vm_fault(); -extern void vm_fault_wire(); -extern void vm_fault_unwire(); +extern kern_return_t vm_fault(vm_map_t, vm_offset_t, vm_prot_t, boolean_t, + boolean_t, void (*)()); +extern void vm_fault_wire(vm_map_t, vm_map_entry_t); +extern void vm_fault_unwire(vm_map_t, vm_map_entry_t); -extern kern_return_t vm_fault_copy(); /* Copy pages from - * one object to another - */ +/* Copy pages from one object to another. */ +extern kern_return_t vm_fault_copy(vm_object_t, vm_offset_t, vm_size_t *, + vm_object_t, vm_offset_t, vm_map_t, + vm_map_version_t *, boolean_t); #endif /* _VM_VM_FAULT_H_ */ |