]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/vm_map.defs
xnu-792.24.17.tar.gz
[apple/xnu.git] / osfmk / mach / vm_map.defs
index e0f88b10a6abd63aae4cd9b0b81cb3fee44806ba..889d71416b46cdc35b22846207f1adf8d4259d47 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
 /*
  */
 /*
- *     File:   mach/mach_port.defs
- *     Author: Rich Draves
+ *     File:   mach/vm_map.defs
  *
- *     Exported kernel calls.
+ *     Exported (native-sized) kernel VM calls.
  */
 
 subsystem
 #if    KERNEL_SERVER
          KernelServer
-#endif KERNEL_SERVER
+#endif /* KERNEL_SERVER */
          vm_map 3800;
 
 #include <mach/std_types.defs>
@@ -318,7 +317,7 @@ routine mach_make_memory_entry(
        inout   size            :vm_size_t;
                offset          :vm_offset_t;
                permission      :vm_prot_t;
-       out     object_handle   :mach_port_move_send_t;
+       out     object_handle   :mem_entry_name_port_move_send_t;
                parent_entry    :mem_entry_name_port_t);
 
 /*
@@ -347,6 +346,7 @@ routine     vm_mapped_pages_info(
                task            : vm_map_t;
        out     pages           : page_address_array_t);
 
+#if 0
 /*
  *    Allow application level processes to create named entries which
  *    are backed by sub-maps which describe regions of address space.
@@ -354,11 +354,13 @@ routine   vm_mapped_pages_info(
  *    in turn, can be mapped into target address spaces 
  */
 
-
 routine        vm_region_object_create(
                target_task     :vm_map_t;
        in      size            :vm_size_t;
        out     region_object   :mach_port_move_send_t);
+#else
+skip; /* was vm_region_object_create */
+#endif
 
 /*
  *     A recursive form of vm_region which probes submaps withint the
@@ -383,7 +385,7 @@ routine vm_region_recurse_64(
        inout   address         : vm_address_t;
         out     size            : vm_size_t;
        inout   nesting_depth   : natural_t;
-       out     info            : vm_region_recurse_info_64_t,CountInOut);
+       out     info            : vm_region_recurse_info_t,CountInOut);
 
 routine mach_vm_region_info_64(
                task            : vm_map_t;
@@ -396,7 +398,7 @@ routine vm_region_64(
        inout   address         : vm_address_t;
         out     size            : vm_size_t;
                flavor          : vm_region_flavor_t;
-       out     info            : vm_region_info_64_t, CountInOut;
+       out     info            : vm_region_info_t, CountInOut;
         out     object_name     : memory_object_name_t =
                                         MACH_MSG_TYPE_MOVE_SEND
                                         ctype: mach_port_t);
@@ -424,6 +426,10 @@ routine vm_map_64(
                max_protection  : vm_prot_t;
                inheritance     : vm_inherit_t);
 
+#if 0
+/*
+ * The UPL interfaces are not ready for user-level export.
+ */
 routine vm_map_get_upl(
                target_task     : vm_map_t;
                address         : vm_address_t;
@@ -441,5 +447,23 @@ routine vm_upl_map(
 routine vm_upl_unmap(
                target_task     : vm_map_t;
                upl             : upl_t);
-               
+#else
+skip; /* was vm_map_get_upl */
+skip; /* was vm_upl_map */
+skip; /* was vm_upl_unmap */
+#endif         
+
+/*
+ *     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 vm_allocate() with VM_FLAGS_PURGABLE
+ *     specified.  See the routine implementation for a complete
+ *     definition of the routine.
+ */
+routine vm_purgable_control(
+               target_task     : vm_map_t;
+               address         : vm_address_t;
+               control         : vm_purgable_t;
+       inout   state           : int);
+