]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/vm/memory_object.h
xnu-201.14.tar.gz
[apple/xnu.git] / osfmk / vm / memory_object.h
index d5e897ef0cba69a123a218685d4de886a93bf35c..a169bd3c3dfa259d3fa1fecb1844bedede9a0fd1 100644 (file)
 #include <mach_pagemap.h>
 
 #include <mach/boolean.h>
+#include <mach/mach_types.h>
+#include <mach/memory_object_types.h>
 #include <ipc/ipc_types.h>
 
-extern kern_return_t   memory_object_set_attributes_common(
-                               vm_object_t     object,
-                               boolean_t       may_cache,
-                               memory_object_copy_strategy_t copy_strategy,
-                               boolean_t       temporary,
-                               vm_size_t       cluster_size,
-                               boolean_t       silent_overwrite,
-                               boolean_t       advisory_pageout);
+__private_extern__
+memory_object_default_t        memory_manager_default_reference(
+                               vm_size_t               *cluster_size);
 
-extern boolean_t       memory_object_sync (
-                               vm_object_t             object,
-                               vm_object_offset_t      offset,
-                               vm_object_size_t        size,
-                               boolean_t               should_flush,
-                               boolean_t               should_return);
+__private_extern__
+kern_return_t          memory_manager_default_check(void);
 
-extern ipc_port_t      memory_manager_default_reference(
-                                       vm_size_t       *cluster_size);
+__private_extern__
+void                   memory_manager_default_init(void);
 
-extern boolean_t       memory_manager_default_port(ipc_port_t port);
+__private_extern__
+void                   memory_object_control_bootstrap(void);
+__private_extern__
+memory_object_control_t memory_object_control_allocate(
+                               vm_object_t             object);
 
-extern kern_return_t   memory_manager_default_check(void);
+__private_extern__
+void                   memory_object_control_collapse(
+                               memory_object_control_t control,
+                               vm_object_t             object);
 
-extern void            memory_manager_default_init(void);
+__private_extern__
+vm_object_t            memory_object_control_to_vm_object(
+                               memory_object_control_t control);
 
+extern
+mach_port_t            convert_mo_control_to_port(
+                               memory_object_control_t control);
+
+extern
+memory_object_control_t convert_port_to_mo_control(
+                               mach_port_t             port);
+
+extern
+mach_port_t            convert_memory_object_to_port(
+                               memory_object_t         object);
+
+extern
+memory_object_t                convert_port_to_memory_object(
+                               mach_port_t             port);
 
 extern kern_return_t   memory_object_free_from_cache(
                                host_t          host,
-                               int             pager_id,
+                               int             *pager_id,
                                int             *count);
 
-extern kern_return_t   memory_object_remove_cached_object(
-                               ipc_port_t      port);
-
-extern void            memory_object_deactivate_pages(
-                               vm_object_t             object,
-                               vm_object_offset_t      offset,
-                               vm_object_size_t        size,
-                               boolean_t               kill_page);
-
 #endif /* _VM_MEMORY_OBJECT_H_ */