|
|
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: ! 49: typedef mach_port_t memory_object_control_t; ! 50: /* Provided to a memory manager; ... */ ! 51: /* used to control a memory object */ ! 52: ! 53: typedef mach_port_t memory_object_name_t; ! 54: /* Used to describe the memory ... */ ! 55: /* object in vm_regions() calls */ ! 56: ! 57: typedef int memory_object_copy_strategy_t; ! 58: /* How memory manager handles copy: */ ! 59: #define MEMORY_OBJECT_COPY_NONE 0 ! 60: /* ... No special support */ ! 61: #define MEMORY_OBJECT_COPY_CALL 1 ! 62: /* ... Make call on memory manager */ ! 63: #define MEMORY_OBJECT_COPY_DELAY 2 ! 64: /* ... Memory manager doesn't ... */ ! 65: /* change data externally. */ ! 66: #define MEMORY_OBJECT_COPY_TEMPORARY 3 ! 67: /* ... Memory manager doesn't ... */ ! 68: /* change data externally, and */ ! 69: /* doesn't need to see changes. */ ! 70: ! 71: typedef int memory_object_return_t; ! 72: /* Which pages to return to manager ! 73: this time (lock_request) */ ! 74: #define MEMORY_OBJECT_RETURN_NONE 0 ! 75: /* ... don't return any. */ ! 76: #define MEMORY_OBJECT_RETURN_DIRTY 1 ! 77: /* ... only dirty pages. */ ! 78: #define MEMORY_OBJECT_RETURN_ALL 2 ! 79: /* ... dirty and precious pages. */ ! 80: ! 81: #define MEMORY_OBJECT_NULL MACH_PORT_NULL ! 82: ! 83: #endif /* _MACH_MEMORY_OBJECT_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.