|
|
1.1 root 1: /*
2: * Mach Operating System
3: * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
4: * All Rights Reserved.
5: *
6: * Permission to use, copy, modify and distribute this software and its
7: * documentation is hereby granted, provided that both the copyright
8: * notice and this permission notice appear in all copies of the
9: * software, derivative works or modified versions, and any portions
10: * thereof, and that both notices appear in supporting documentation.
11: *
12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15: *
16: * Carnegie Mellon requests users of this software to return to
17: *
18: * Software Distribution Coordinator or [email protected]
19: * School of Computer Science
20: * Carnegie Mellon University
21: * Pittsburgh PA 15213-3890
22: *
23: * any improvements or extensions that they make and grant Carnegie Mellon
24: * the rights to redistribute these changes.
25: */
26: /*
27: * File: memory_object.h
28: * Author: Michael Wayne Young
29: *
30: * External memory management interface definition.
31: */
32:
33: #ifndef _MACH_MEMORY_OBJECT_H_
34: #define _MACH_MEMORY_OBJECT_H_
35:
36: /*
37: * User-visible types used in the external memory
38: * management interface:
39: */
40:
41: #include <mach/port.h>
42:
43: typedef mach_port_t memory_object_t;
44: /* Represents a memory object ... */
45: /* Used by user programs to specify */
46: /* the object to map; used by the */
47: /* kernel to retrieve or store data */
48:
1.1.1.2 ! root 49: typedef mach_port_t * memory_object_array_t;
! 50: /* should be memory_object_t * */
! 51:
1.1 root 52: typedef mach_port_t memory_object_control_t;
53: /* Provided to a memory manager; ... */
54: /* used to control a memory object */
55:
56: typedef mach_port_t memory_object_name_t;
57: /* Used to describe the memory ... */
58: /* object in vm_regions() calls */
59:
60: typedef int memory_object_copy_strategy_t;
61: /* How memory manager handles copy: */
62: #define MEMORY_OBJECT_COPY_NONE 0
63: /* ... No special support */
64: #define MEMORY_OBJECT_COPY_CALL 1
65: /* ... Make call on memory manager */
66: #define MEMORY_OBJECT_COPY_DELAY 2
67: /* ... Memory manager doesn't ... */
68: /* change data externally. */
69: #define MEMORY_OBJECT_COPY_TEMPORARY 3
70: /* ... Memory manager doesn't ... */
71: /* change data externally, and */
72: /* doesn't need to see changes. */
73:
74: typedef int memory_object_return_t;
75: /* Which pages to return to manager
76: this time (lock_request) */
77: #define MEMORY_OBJECT_RETURN_NONE 0
78: /* ... don't return any. */
79: #define MEMORY_OBJECT_RETURN_DIRTY 1
80: /* ... only dirty pages. */
81: #define MEMORY_OBJECT_RETURN_ALL 2
82: /* ... dirty and precious pages. */
83:
84: #define MEMORY_OBJECT_NULL MACH_PORT_NULL
85:
86: #endif /* _MACH_MEMORY_OBJECT_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.