]> git.saurik.com Git - apple/xnu.git/blame - osfmk/default_pager/default_pager_object.defs
xnu-344.21.73.tar.gz
[apple/xnu.git] / osfmk / default_pager / default_pager_object.defs
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
d7e50217 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
d7e50217
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
d7e50217
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * @OSF_COPYRIGHT@
27 */
28/*
29 * Mach Operating System
30 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
31 * All Rights Reserved.
32 *
33 * Permission to use, copy, modify and distribute this software and its
34 * documentation is hereby granted, provided that both the copyright
35 * notice and this permission notice appear in all copies of the
36 * software, derivative works or modified versions, and any portions
37 * thereof, and that both notices appear in supporting documentation.
38 *
39 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
40 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
41 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
42 *
43 * Carnegie Mellon requests users of this software to return to
44 *
45 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
46 * School of Computer Science
47 * Carnegie Mellon University
48 * Pittsburgh PA 15213-3890
49 *
50 * any improvements or extensions that they make and grant Carnegie Mellon
51 * the rights to redistribute these changes.
52 */
53/*
54 */
55/*
56 * File: mach/default_pager_object.defs
57 *
58 */
59
60subsystem
61#if KERNEL_USER
62 KernelUser
63#endif /* KERNEL_USER */
64#if KERNEL_SERVER
65 KernelServer
66#endif /* KERNEL_SERVER */
67 default_pager_object 2275;
68
69#include <mach/std_types.defs>
70#include <mach/mach_types.defs>
71#include <default_pager/default_pager_types.defs>
72
73type vnode_ptr_t = array[1] of int;
74
75routine default_pager_object_create(
76 default_pager : mach_port_t;
0b4e3aa0
A
77 object_size : vm_size_t;
78 out memory_object : memory_object_t);
1c79356b
A
79
80routine default_pager_info(
81 default_pager : mach_port_t;
82 out info : default_pager_info_t);
83
84routine default_pager_objects(
85 default_pager : mach_port_t;
86 out objects : default_pager_object_array_t,
87 Dealloc;
88 out ports : mach_port_array_t =
89 array[] of mach_port_move_send_t,
90 Dealloc);
91
92routine default_pager_object_pages(
93 default_pager : mach_port_t;
94 memory_object : memory_object_name_t;
95 out pages : default_pager_page_array_t,
96 Dealloc);
97
98skip; /* default_pager_paging_file */
99
100routine default_pager_backing_store_create(
101 default_pager : mach_port_t;
102 in priority : int;
103 in clsize : int;
104 out backing_store : mach_port_t =
105 MACH_MSG_TYPE_MAKE_SEND);
106
107routine default_pager_backing_store_delete(
108 backing_store : mach_port_t);
109
110
111#ifdef PAGE_TO_DEVICE
112routine default_pager_add_segment(
113 backing_store : mach_port_t;
114 in device : mach_port_t;
115 in offset : recnum_t;
116 in count : recnum_t;
117 in record_size : int);
118#endif
119
120routine default_pager_backing_store_info(
121 backing_store : mach_port_t;
122 flavor : backing_store_flavor_t;
123 out info : backing_store_info_t, CountInOut);
124
125routine default_pager_add_file(
126 backing_store : mach_port_t;
127 in vnode : vnode_ptr_t;
128 in record_size : int;
129 in size : vm_size_t);
130
131
132routine default_pager_triggers(
133 default_pager : mach_port_t;
134 in hi_wat : int;
135 in lo_wat : int;
136 in flags : int;
137 in trigger_port : mach_port_t);
138
139