|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Mach Operating System
27: * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
28: * All Rights Reserved.
29: *
30: * Permission to use, copy, modify and distribute this software and its
31: * documentation is hereby granted, provided that both the copyright
32: * notice and this permission notice appear in all copies of the
33: * software, derivative works or modified versions, and any portions
34: * thereof, and that both notices appear in supporting documentation.
35: *
36: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39: *
40: * Carnegie Mellon requests users of this software to return to
41: *
42: * Software Distribution Coordinator or [email protected]
43: * School of Computer Science
44: * Carnegie Mellon University
45: * Pittsburgh PA 15213-3890
46: *
47: * any improvements or extensions that they make and grant Carnegie Mellon
48: * the rights to redistribute these changes.
49: */
50: /*
51: * HISTORY
52: * $Log: memory_object_default.defs,v $
1.1.1.2 ! root 53: * Revision 1.3 1999/07/22 20:04:02 wsanchez
! 54: * Update APSL
! 55: *
! 56: * Revision 1.2 1999/03/25 09:19:42 wsanchez
! 57: * Merge kernel-copyrights.
! 58: * Undelete drvAdaptecU2SCSI.
! 59: *
1.1 root 60: * Revision 1.1.1.1.666.4 1999/03/16 17:05:41 wsanchez
61: * Substitute License
62: *
63: * Revision 1.1.1.1.666.3 1999/03/16 15:28:04 wsanchez
64: * Substitute copyright
65: *
66: * Revision 1.1.1.1.666.2 1999/03/16 10:37:39 umeshv
67: * Fixed errors in previous commit.
68: *
69: * Revision 1.1.1.1.666.1 1999/03/11 09:52:50 umeshv
70: * Added copyrights.
71: *
72: * Revision 1.1.1.1 1997/09/30 02:44:51 wsanchez
73: * Import of kernel from umeshv/kernel
74: *
75: * Revision 2.8 91/08/28 11:15:24 jsb
76: * Added conditionalized sequence number support.
77: * [91/08/13 rpd]
78: *
79: * Revision 2.7 91/07/01 08:25:22 jsb
80: * If KERNEL and NORMA_VM, then use a userprefix (to allow interposition).
81: * [91/06/29 16:35:53 jsb]
82: *
83: * Revision 2.6 91/06/25 10:30:41 rpd
84: * Changed the port-based type declarations
85: * to use mach_port_t as the C type name.
86: * [91/05/23 rpd]
87: *
88: * Revision 2.5 91/05/14 16:56:08 mrt
89: * Correcting copyright
90: *
91: * Revision 2.4 91/02/05 17:34:05 mrt
92: * Changed to new Mach copyright
93: * [91/02/01 17:19:22 mrt]
94: *
95: * Revision 2.3 90/08/06 17:06:16 rpd
96: * For compatibility with Mach 2.5, added dealloc to
97: * argument of memory_object_create.
98: * [90/08/04 rpd]
99: *
100: * Revision 2.2 90/06/02 14:59:00 rpd
101: * Converted to new IPC.
102: * [90/03/26 22:35:46 rpd]
103: *
104: * Revision 2.1 89/08/03 17:18:28 rwd
105: * Created.
106: *
107: * Revision 2.3 89/02/25 18:38:29 gm0w
108: * Changes for cleanup.
109: *
110: * Revision 2.2 89/01/15 16:31:26 rpd
111: * Moved from kern/ to mach/.
112: * [89/01/15 14:40:47 rpd]
113: *
114: * Revision 2.7 89/01/12 07:58:30 rpd
115: * Fixed includes.
116: * [89/01/12 04:52:50 rpd]
117: *
118: * Revision 2.6 88/08/25 18:17:23 mwyoung
119: * Rid the kernel_task of rights to the new memory_object in
120: * memory_object_create.
121: * Add size argument to memory_object_create.
122: * [88/08/11 18:47:16 mwyoung]
123: *
124: * Revision 2.5 88/08/06 18:23:00 rpd
125: * Added dealloc flag to new_memory_object arg of memory_object_create().
126: * Otherwise, kernel_task is left with send right, and this is very bad.
127: *
128: * 29-Jun-88 Michael Young (mwyoung) at Carnegie-Mellon University
129: * Use new types.
130: *
131: * 29-Jun-88 Michael Young (mwyoung) at Carnegie-Mellon University
132: * Moved data type declarations to "mach_types.defs".
133: *
134: * 9-Dec-87 Michael Young (mwyoung) at Carnegie-Mellon University
135: * Created.
136: */
137: /*
138: * File: mach/memory_object_default.defs
139: *
140: * Abstract:
141: * Mach external memory management interface declaration; subset
142: * that is applicable to managers of kernel-created memory objects.
143: */
144:
145: subsystem
146: #if KERNEL_USER
147: KernelUser
148: #endif KERNEL_USER
149: memory_object_default 2250;
150:
151: #include <mach/std_types.defs>
152: #include <mach/mach_types.defs>
153:
154: #if SEQNOS
155: serverprefix seqnos_;
156: serverdemux seqnos_memory_object_default_server;
157: #endif SEQNOS
158:
159: /*
160: * Pass on responsibility for the new kernel-created memory
161: * object. The port on which this request is that port
162: * (possibly a memory object itself) registered as the "default
163: * pager". Other arguments are as described for memory_object_init.
164: * [No reply required.]
165: */
166: simpleroutine memory_object_create(
167: old_memory_object : memory_object_t =
168: MACH_MSG_TYPE_MOVE_SEND
169: ctype: mach_port_t;
170: #if SEQNOS
171: msgseqno seqno : mach_port_seqno_t;
172: #endif SEQNOS
173: new_memory_object : memory_object_t =
174: MACH_MSG_TYPE_MOVE_RECEIVE
175: ctype: mach_port_t
176: #if KERNEL_USER
177: /* for compatibility with Mach 2.5 kernels */
178: , dealloc
179: #endif KERNEL_USER
180: ;
181: new_object_size : vm_size_t;
182: new_control_port : memory_object_control_t =
183: MACH_MSG_TYPE_MAKE_SEND
184: ctype: mach_port_t;
185: new_name : memory_object_name_t =
186: MACH_MSG_TYPE_MAKE_SEND
187: ctype: mach_port_t;
188: new_page_size : vm_size_t);
189:
190: /*
191: * Provide initial data contents for this region of
192: * the memory object. If data has already been written
193: * to the object, this value must be discarded; otherwise,
194: * this call acts identically to memory_object_data_write.
195: */
196: simpleroutine memory_object_data_initialize(
197: memory_object : memory_object_t;
198: #if SEQNOS
199: msgseqno seqno : mach_port_seqno_t;
200: #endif SEQNOS
201: memory_control_port : memory_object_control_t =
202: MACH_MSG_TYPE_MAKE_SEND
203: ctype: mach_port_t;
204: offset : vm_offset_t;
205: data : pointer_t);
206:
207: #if 0
208: /*
209: * Indicate that the specified range of data in this memory object
210: * will not be requested again until it is reinitialized with
211: * memory_object_data_write or memory_object_data_initialize.
212: */
213: simpleroutine memory_object_data_terminate(
214: memory_object : memory_object_t;
215: #if SEQNOS
216: msgseqno seqno : mach_port_seqno_t;
217: #endif SEQNOS
218: memory_control_port : memory_object_control_t =
219: MACH_MSG_TYPE_MAKE_SEND
220: ctype: mach_port_t;
221: offset : vm_offset_t;
222: size : vm_size_t);
223: #else 0
224: skip; /* memory_object_data_terminate */
225: #endif 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.