X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5d5c5d0d5b79ade9a973d55186ffda2638ba2b6e..8f6c56a50524aa785f7e596d52dddfb331e18961:/osfmk/vm/vm_protos.h diff --git a/osfmk/vm/vm_protos.h b/osfmk/vm/vm_protos.h index fc31baff1..8e1d08c0d 100644 --- a/osfmk/vm/vm_protos.h +++ b/osfmk/vm/vm_protos.h @@ -1,31 +1,29 @@ /* - * Copyright (c) 2004-2006 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * - * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * - * This file contains Original Code and/or Modifications of Original Code - * as defined in and that are subject to the Apple Public Source License - * Version 2.0 (the 'License'). You may not use this file except in - * compliance with the License. The rights granted to you under the - * License may not be used to create, or enable the creation or - * redistribution of, unlawful or unlicensed copies of an Apple operating - * system, or to circumvent, violate, or enable the circumvention or - * violation of, any terms of an Apple operating system software license - * agreement. - * - * Please obtain a copy of the License at - * http://www.opensource.apple.com/apsl/ and read it before using this - * file. - * - * The Original Code and all software distributed under the License are - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. - * Please see the License for the specific language governing rights and + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and * limitations under the License. - * - * @APPLE_LICENSE_OSREFERENCE_HEADER_END@ + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ #ifdef XNU_KERNEL_PRIVATE @@ -65,7 +63,6 @@ extern kern_return_t device_close( */ extern int start_def_pager( char *bs_device); -extern int default_pager_init_flag; /* * osfmk @@ -74,8 +71,6 @@ extern int default_pager_init_flag; /* these should be exported cleanly from OSFMK since BSD needs them */ extern ipc_port_t convert_task_to_port( task_t task); -extern ipc_port_t convert_task_name_to_port( - task_name_t task_name); #endif /* _KERN_IPC_TT_H_ */ #ifndef _IPC_IPC_PORT_H_ extern mach_port_name_t ipc_port_copyout_send( @@ -144,22 +139,13 @@ extern mach_vm_offset_t mach_get_vm_end(vm_map_t); extern vm_offset_t get_vm_start(vm_map_t); extern vm_offset_t get_vm_end(vm_map_t); +#ifdef __PPC__ /* * LP64todo - map in the commpage cleanly and remove these. */ extern void vm_map_commpage64( vm_map_t ); -extern void vm_map_remove_commpage( vm_map_t ); -#ifdef __i386__ -extern void vm_map_commpage32(vm_map_t); -extern kern_return_t vm_map_apple_protected( - vm_map_t map, - vm_map_offset_t start, - vm_map_offset_t end); -extern void apple_protect_pager_bootstrap(void); -extern memory_object_t apple_protect_pager_setup(vm_object_t backing_object); -extern void apple_protect_pager_map(memory_object_t mem_obj); -#endif /* __i386__ */ - +extern void vm_map_remove_commpage64( vm_map_t ); +#endif /* __PPC__ */ /* * bsd @@ -200,14 +186,6 @@ extern memory_object_t vnode_pager_setup( struct vnode *, memory_object_t); extern vm_object_offset_t vnode_pager_get_filesize( struct vnode *); -extern kern_return_t vnode_pager_get_pathname( - struct vnode *vp, - char *pathname, - vm_size_t *length_p); -extern kern_return_t vnode_pager_get_filename( - struct vnode *vp, - char **filename); - #endif /* _VNODE_PAGER_ */ extern void vnode_pager_bootstrap(void); extern kern_return_t @@ -223,13 +201,6 @@ extern kern_return_t vnode_pager_init( extern kern_return_t vnode_pager_get_object_size( memory_object_t, memory_object_offset_t *); -extern kern_return_t vnode_pager_get_object_pathname( - memory_object_t mem_obj, - char *pathname, - vm_size_t *length_p); -extern kern_return_t vnode_pager_get_object_filename( - memory_object_t mem_obj, - char **filename); extern kern_return_t vnode_pager_data_request( memory_object_t, memory_object_offset_t, @@ -268,6 +239,9 @@ extern void vnode_pager_release_from_cache( extern void ubc_unmap( struct vnode *vp); +extern int vnode_pager_workaround; +extern int device_pager_workaround; + extern void dp_memory_object_reference(memory_object_t); extern void dp_memory_object_deallocate(memory_object_t); #ifndef _memory_object_server_ @@ -318,8 +292,6 @@ extern kern_return_t device_pager_data_request(memory_object_t, extern kern_return_t device_pager_data_return(memory_object_t, memory_object_offset_t, vm_size_t, - memory_object_offset_t *, - int *, boolean_t, boolean_t, int); @@ -359,8 +331,6 @@ extern int macx_swapinfo( vm_size_t *pagesize_p, boolean_t *encrypted_p); -extern void log_nx_failure(addr64_t vaddr, vm_prot_t prot); - #endif /* _VM_VM_PROTOS_H_ */ #endif /* XNU_KERNEL_PRIVATE */