]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/mach_vm.defs
xnu-1699.22.73.tar.gz
[apple/xnu.git] / osfmk / mach / mach_vm.defs
index 9267f7e3f2bb94f4734214c7c3f16f74c52a8131..ade3eaa61212383233c0702620371f7f62d1c92f 100644 (file)
@@ -291,7 +291,11 @@ routine vm_behavior_set(
 #if !defined(_MACH_VM_PUBLISH_AS_LOCAL_)
 routine mach_vm_map(
 #else
+#if defined(__arm__) && !LIBSYSCALL_INTERFACE
+routine _vm_map_arm(
+#else
 routine vm_map(
+#endif
 #endif
                target_task     : vm_task_entry_t;
        inout   address         : mach_vm_address_t;
@@ -333,7 +337,7 @@ routine vm_remap(
        inout   target_address  : mach_vm_address_t;
                size            : mach_vm_size_t;
                mask            : mach_vm_offset_t;
-               anywhere        : boolean_t;
+               flags           : int;
                src_task        : vm_map_t;
                src_address     : mach_vm_address_t;
                copy            : boolean_t;
@@ -401,8 +405,12 @@ routine vm_region_64(
  *     THIS INTERFACE IS STILL EVOLVING.
  */
 #if !defined(_MACH_VM_PUBLISH_AS_LOCAL_)
+#if !defined(__LP64__) || KERNEL_SERVER || XNU_KERNEL_PRIVATE || LIBSYSCALL_INTERFACE
 routine _mach_make_memory_entry(
 #else
+routine mach_make_memory_entry(
+#endif
+#else
 routine mach_make_memory_entry_64(
 #endif
                target_task     :vm_map_t;
@@ -412,6 +420,33 @@ routine mach_make_memory_entry_64(
        out     object_handle   :mem_entry_name_port_move_send_t;
                parent_handle   :mem_entry_name_port_t);
 
+/*
+ *     Control behavior and investigate state of a "purgable" object in
+ *     the virtual address space of the target task.  A purgable object is
+ *     created via a call to mach_vm_allocate() with VM_FLAGS_PURGABLE
+ *     specified.  See the routine implementation for a complete
+ *     definition of the routine.
+ */
+#if !defined(_MACH_VM_PUBLISH_AS_LOCAL_)
+routine mach_vm_purgable_control(
+#else
+routine vm_purgable_control(
+#endif
+               target_task     : vm_map_t;
+               address         : mach_vm_address_t;
+               control         : vm_purgable_t;
+       inout   state           : int);
+
+
+#if !defined(_MACH_VM_PUBLISH_AS_LOCAL_)
+routine mach_vm_page_info(
+                       target_task             : vm_map_t;
+                       address                 : mach_vm_address_t;
+                       flavor                  : vm_page_info_flavor_t;
+       out             info                    : vm_page_info_t, CountInOut);
+#else
+skip;
+#endif
 
 /****************************** Legacy section ***************************/
 /*  The following definitions are exist to provide compatibility with    */
@@ -445,3 +480,5 @@ routine mach_make_memory_entry_64(
  *     mach_make_memory_entry() -
  *             use mach_vm_make_memory_entry() or mach_make_memory_entry_64()
  */
+
+/* vim: set ft=c : */