]> git.saurik.com Git - apple/xnu.git/blob - osfmk/default_pager/default_pager_object.defs
xnu-344.34.tar.gz
[apple/xnu.git] / osfmk / default_pager / default_pager_object.defs
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 object_size : vm_size_t;
75 out memory_object : memory_object_t);
76
77 routine default_pager_info(
78 default_pager : mach_port_t;
79 out info : default_pager_info_t);
80
81 routine default_pager_objects(
82 default_pager : mach_port_t;
83 out objects : default_pager_object_array_t,
84 Dealloc;
85 out ports : mach_port_array_t =
86 array[] of mach_port_move_send_t,
87 Dealloc);
88
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,
93 Dealloc);
94
95 skip; /* default_pager_paging_file */
96
97 routine default_pager_backing_store_create(
98 default_pager : mach_port_t;
99 in priority : int;
100 in clsize : int;
101 out backing_store : mach_port_t =
102 MACH_MSG_TYPE_MAKE_SEND);
103
104 routine default_pager_backing_store_delete(
105 backing_store : mach_port_t);
106
107
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;
113 in count : recnum_t;
114 in record_size : int);
115 #endif
116
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);
121
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);
127
128
129 routine default_pager_triggers(
130 default_pager : mach_port_t;
131 in hi_wat : int;
132 in lo_wat : int;
133 in flags : int;
134 in trigger_port : mach_port_t);
135
136