]>
Commit | Line | Data |
---|---|---|
1c79356b A |
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 | * Mach Operating System | |
27 | * Copyright (c) 1991,1990,1989 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 Software.Distribution@CS.CMU.EDU | |
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 | */ | |
52 | /* | |
53 | * File: mach/default_pager_object.defs | |
54 | * | |
55 | */ | |
56 | ||
57 | subsystem | |
58 | #if KERNEL_USER | |
59 | KernelUser | |
60 | #endif /* KERNEL_USER */ | |
61 | #if KERNEL_SERVER | |
62 | KernelServer | |
63 | #endif /* KERNEL_SERVER */ | |
64 | default_pager_object 2275; | |
65 | ||
66 | #include <mach/std_types.defs> | |
67 | #include <mach/mach_types.defs> | |
68 | #include <default_pager/default_pager_types.defs> | |
69 | ||
70 | type vnode_ptr_t = array[1] of int; | |
71 | ||
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); | |
77 | ||
78 | routine default_pager_info( | |
79 | default_pager : mach_port_t; | |
80 | out info : default_pager_info_t); | |
81 | ||
82 | routine default_pager_objects( | |
83 | default_pager : mach_port_t; | |
84 | out objects : default_pager_object_array_t, | |
85 | Dealloc; | |
86 | out ports : mach_port_array_t = | |
87 | array[] of mach_port_move_send_t, | |
88 | Dealloc); | |
89 | ||
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, | |
94 | Dealloc); | |
95 | ||
96 | skip; /* default_pager_paging_file */ | |
97 | ||
98 | routine default_pager_backing_store_create( | |
99 | default_pager : mach_port_t; | |
100 | in priority : int; | |
101 | in clsize : int; | |
102 | out backing_store : mach_port_t = | |
103 | MACH_MSG_TYPE_MAKE_SEND); | |
104 | ||
105 | routine default_pager_backing_store_delete( | |
106 | backing_store : mach_port_t); | |
107 | ||
108 | ||
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; | |
114 | in count : recnum_t; | |
115 | in record_size : int); | |
116 | #endif | |
117 | ||
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); | |
122 | ||
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); | |
128 | ||
129 | ||
130 | routine default_pager_triggers( | |
131 | default_pager : mach_port_t; | |
132 | in hi_wat : int; | |
133 | in lo_wat : int; | |
134 | in flags : int; | |
135 | in trigger_port : mach_port_t); | |
136 | ||
137 |