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 out memory_object : memory_object_t =
75 MACH_MSG_TYPE_MAKE_SEND;
76 object_size : vm_size_t);
78 routine default_pager_info(
79 default_pager : mach_port_t;
80 out info : default_pager_info_t);
82 routine default_pager_objects(
83 default_pager : mach_port_t;
84 out objects : default_pager_object_array_t,
86 out ports : mach_port_array_t =
87 array[] of mach_port_move_send_t,
90 routine default_pager_object_pages(
91 default_pager : mach_port_t;
92 memory_object : memory_object_name_t;
93 out pages : default_pager_page_array_t,
96 skip; /* default_pager_paging_file */
98 routine default_pager_backing_store_create(
99 default_pager : mach_port_t;
102 out backing_store : mach_port_t =
103 MACH_MSG_TYPE_MAKE_SEND);
105 routine default_pager_backing_store_delete(
106 backing_store : mach_port_t);
109 #ifdef PAGE_TO_DEVICE
110 routine default_pager_add_segment(
111 backing_store : mach_port_t;
112 in device : mach_port_t;
113 in offset : recnum_t;
115 in record_size : int);
118 routine default_pager_backing_store_info(
119 backing_store : mach_port_t;
120 flavor : backing_store_flavor_t;
121 out info : backing_store_info_t, CountInOut);
123 routine default_pager_add_file(
124 backing_store : mach_port_t;
125 in vnode : vnode_ptr_t;
126 in record_size : int;
127 in size : vm_size_t);
130 routine default_pager_triggers(
131 default_pager : mach_port_t;
135 in trigger_port : mach_port_t);