2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
26 * Mach Operating System
27 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
28 * All Rights Reserved.
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.
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.
40 * Carnegie Mellon requests users of this software to return to
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
53 * File: mach/default_pager_object.defs
60 #endif /* KERNEL_USER */
63 #endif /* KERNEL_SERVER */
64 default_pager_object 2275;
66 #include <mach/std_types.defs>
67 #include <mach/mach_types.defs>
68 #include <default_pager/default_pager_types.defs>
70 type vnode_ptr_t = array[1] of int;
72 routine default_pager_object_create(
73 default_pager : mach_port_t;
74 object_size : vm_size_t;
75 out memory_object : memory_object_t);
77 routine default_pager_info(
78 default_pager : mach_port_t;
79 out info : default_pager_info_t);
81 routine default_pager_objects(
82 default_pager : mach_port_t;
83 out objects : default_pager_object_array_t,
85 out ports : mach_port_array_t =
86 array[] of mach_port_move_send_t,
89 routine default_pager_object_pages(
90 default_pager : mach_port_t;
91 memory_object : memory_object_name_t;
92 out pages : default_pager_page_array_t,
95 skip; /* default_pager_paging_file */
97 routine default_pager_backing_store_create(
98 default_pager : mach_port_t;
101 out backing_store : mach_port_t =
102 MACH_MSG_TYPE_MAKE_SEND);
104 routine default_pager_backing_store_delete(
105 backing_store : mach_port_t);
108 #ifdef PAGE_TO_DEVICE
109 routine default_pager_add_segment(
110 backing_store : mach_port_t;
111 in device : mach_port_t;
112 in offset : recnum_t;
114 in record_size : int);
117 routine default_pager_backing_store_info(
118 backing_store : mach_port_t;
119 flavor : backing_store_flavor_t;
120 out info : backing_store_info_t, CountInOut);
122 routine default_pager_add_file(
123 backing_store : mach_port_t;
124 in vnode : vnode_ptr_t;
125 in record_size : int;
126 in size : vm_size_t);
129 routine default_pager_triggers(
130 default_pager : mach_port_t;
134 in trigger_port : mach_port_t);