]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/vm/vm_fault.h
xnu-4570.61.1.tar.gz
[apple/xnu.git] / osfmk / vm / vm_fault.h
index 878d140f13fa0e297d08a4cb889f417c968bece6..666b7ef52c23a1ee20d722d3fb3e30397ca10063 100644 (file)
@@ -91,10 +91,15 @@ extern kern_return_t vm_fault(
                vm_map_offset_t vaddr,
                vm_prot_t       fault_type,
                boolean_t       change_wiring,
+#if XNU_KERNEL_PRIVATE
+               vm_tag_t        wire_tag,           /* if wiring must pass tag != VM_KERN_MEMORY_NONE */
+#endif
                int             interruptible,
                pmap_t          pmap,
                vm_map_offset_t pmap_addr);
 
+extern void vm_pre_fault(vm_map_offset_t);
+
 #ifdef MACH_KERNEL_PRIVATE
 
 #include <vm/vm_page.h>
@@ -103,6 +108,16 @@ extern kern_return_t vm_fault(
 
 extern void vm_fault_init(void);
 
+/* exported kext version */
+extern kern_return_t vm_fault_external(
+       vm_map_t        map,
+       vm_map_offset_t vaddr,
+       vm_prot_t       fault_type,
+       boolean_t       change_wiring,
+       int             interruptible,
+       pmap_t          caller_pmap,
+       vm_map_offset_t caller_pmap_addr);
+
 /*
  *     Page fault handling based on vm_object only.
  */
@@ -113,10 +128,11 @@ extern vm_fault_return_t vm_fault_page(
                vm_object_offset_t first_offset,/* Offset into object */
                vm_prot_t       fault_type,     /* What access is requested */
                boolean_t       must_be_resident,/* Must page be resident? */
+               boolean_t       caller_lookup,  /* caller looked up page */
                /* Modifies in place: */
                vm_prot_t       *protection,    /* Protection for mapping */
-               /* Returns: */
                vm_page_t       *result_page,   /* Page found, if successful */
+               /* Returns: */
                vm_page_t       *top_page,      /* Page in top object, if
                                                 * not result_page.  */
                int             *type_of_fault, /* if non-zero, return COW, zero-filled, etc...
@@ -134,8 +150,11 @@ extern void vm_fault_cleanup(
 extern kern_return_t vm_fault_wire(
                vm_map_t        map,
                vm_map_entry_t  entry,
+               vm_prot_t       prot,
+               vm_tag_t        wire_tag,
                pmap_t          pmap,
-               vm_map_offset_t pmap_addr);
+               vm_map_offset_t pmap_addr,
+               ppnum_t         *physpage_p);
 
 extern void vm_fault_unwire(
                vm_map_t        map,
@@ -162,11 +181,19 @@ extern kern_return_t vm_fault_enter(
        vm_prot_t fault_type,
        boolean_t wired,
        boolean_t change_wiring,
+       vm_tag_t  wire_tag,             /* if wiring must pass tag != VM_KERN_MEMORY_NONE */
        boolean_t no_cache,
        boolean_t cs_bypass,
+       int       user_tag,
+       int       pmap_options,
        boolean_t *need_retry,
        int *type_of_fault);
 
+extern vm_offset_t kdp_lightweight_fault(
+               vm_map_t map,
+               vm_offset_t cur_target_addr);
+
+
 #endif /* MACH_KERNEL_PRIVATE */
 
 #endif /* KERNEL_PRIVATE */