]> git.saurik.com Git - apple/xnu.git/blob - osfmk/kern/norma_protos.h
xnu-123.5.tar.gz
[apple/xnu.git] / osfmk / kern / norma_protos.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 /*
26 * HISTORY
27 *
28 * Revision 1.1.1.1 1998/09/22 21:05:34 wsanchez
29 * Import of Mac OS X kernel (~semeria)
30 *
31 * Revision 1.1.1.1 1998/03/07 02:25:55 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.1.4.1 1995/02/23 17:31:45 alanl
35 * DIPC: Merge from nmk17b2 to nmk18b8.
36 * [95/01/05 alanl]
37 *
38 * Revision 1.1.10.1 1994/12/01 20:43:40 dwm
39 * mk6 CR801 - copyright marker not FREE_
40 * [1994/12/01 19:25:52 dwm]
41 *
42 * Revision 1.1.5.2 1994/09/10 21:47:18 bolinger
43 * Merge up to NMK17.3
44 * [1994/09/08 19:58:04 bolinger]
45 *
46 * Revision 1.1.5.1 1994/06/21 19:43:06 dlb
47 * Bring forward to NMK18
48 * [1994/06/17 18:58:04 dlb]
49 *
50 * Revision 1.1.2.2 1994/07/22 09:54:09 paire
51 * Added vm_remap_remote prototype.
52 * [94/07/05 paire]
53 *
54 * Revision 1.1.2.1 1994/12/06 20:11:22 alanl
55 * Initial revision. Moved here from kern/norma_task.h to avoid a
56 * name collision with the mig-generated kern/norma_task.h.
57 * [94/12/05 mmp]
58 *
59 * $EndLog$
60 */
61 /*
62 * Mach Operating System
63 * Copyright (c) 1991 Carnegie Mellon University
64 * All Rights Reserved.
65 *
66 * Permission to use, copy, modify and distribute this software and its
67 * documentation is hereby granted, provided that both the copyright
68 * notice and this permission notice appear in all copies of the
69 * software, derivative works or modified versions, and any portions
70 * thereof, and that both notices appear in supporting documentation.
71 *
72 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
73 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
74 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
75 *
76 * Carnegie Mellon requests users of this software to return to
77 *
78 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
79 * School of Computer Science
80 * Carnegie Mellon University
81 * Pittsburgh PA 15213-3890
82 *
83 * any improvements or extensions that they make and grant Carnegie Mellon
84 * the rights to redistribute these changes.
85 */
86
87 #ifndef _KERN_NORMA_PROTOS_H_
88 #define _KERN_NORMA_PROTOS_H_
89
90 extern void task_copy_vm(
91 ipc_port_t host,
92 vm_map_t old_map,
93 boolean_t clone,
94 boolean_t kill_parent,
95 ipc_port_t to);
96
97 extern kern_return_t vm_remap_remote(
98 ipc_port_t target_task_port,
99 vm_offset_t *target_address,
100 vm_size_t size,
101 vm_offset_t mask,
102 boolean_t anywhere,
103 ipc_port_t source_task_port,
104 vm_offset_t source_address,
105 boolean_t copy,
106 vm_prot_t *cur_protection,
107 vm_prot_t *max_protection,
108 vm_inherit_t inheritance);
109
110 #endif /* _KERN_NORMA_PROTOS_H_ */