|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Mach Operating System
27: * Copyright (c) 1987 Carnegie-Mellon University
28: * All rights reserved. The CMU software License Agreement specifies
29: * the terms and conditions for use and redistribution.
30: */
31:
32: subsystem pager_default 2250;
33:
34: /*
35: * File: kern/pager_default.defs
36: *
37: * Abstract:
38: * Mach external memory management interface declaration; subset
39: * that is applicable to managers of kernel-created memory objects.
40: *
41: * HISTORY
42: * 9-Dec-87 Michael Young (mwyoung) at Carnegie-Mellon University
43: * Created.
44: */
45:
46: type int = MSG_TYPE_INTEGER_32;
47:
48: type boolean_t = MSG_TYPE_BOOLEAN;
49:
50: type port_t = MSG_TYPE_PORT;
51: type port_all_t = MSG_TYPE_PORT_ALL;
52: type paging_object_t = port_t;
53: type vm_offset_t = int;
54: type vm_size_t = int;
55: type vm_prot_t = int;
56:
57: type pointer_t = ^array [] of (MSG_TYPE_INTEGER_8, 8);
58:
59: import <mach/mach_types.h>;
60:
61: /*
62: * Pass on responsibility for the new kernel-created memory
63: * object. The port on which this request is that port
64: * (possibly a memory object itself) registered as the "default
65: * pager". Other arguments are as described for pager_init.
66: * [No reply required.]
67: */
68: simpleroutine pager_create(
69: old_paging_object : paging_object_t;
70: new_paging_object : port_all_t;
71: new_request_port : port_t;
72: new_name : port_t;
73: new_page_size : vm_size_t);
74:
75: /*
76: * Provide initial data contents for this region of
77: * the memory object. If data has already been written
78: * to the object, this value must be discarded; otherwise,
79: * this call acts identically to pager_data_write.
80: */
81: simpleroutine pager_data_initialize(
82: paging_object : paging_object_t;
83: pager_request_port : port_t;
84: offset : vm_offset_t;
85: data : pointer_t);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.