X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e3027f41d0120b4278cca462f397b6619dcd9ac5..0b4e3aa066abc0728aacb4bbeb86f53f9737156e:/osfmk/vm/memory_object.h?ds=sidebyside diff --git a/osfmk/vm/memory_object.h b/osfmk/vm/memory_object.h index d5e897ef0..a169bd3c3 100644 --- a/osfmk/vm/memory_object.h +++ b/osfmk/vm/memory_object.h @@ -56,46 +56,54 @@ #include #include +#include +#include #include -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_ */