FreeBSD/Linux Kernel Cross Reference
sys/vm/vm_fault.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989,1988,1987 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 Software.Distribution@CS.CMU.EDU
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 * HISTORY
28 * $Log: vm_fault.h,v $
29 * Revision 2.6 91/05/18 14:40:15 rpd
30 * Added VM_FAULT_FICTITIOUS_SHORTAGE.
31 * [91/03/29 rpd]
32 *
33 * Revision 2.5 91/05/14 17:48:59 mrt
34 * Correcting copyright
35 *
36 * Revision 2.4 91/03/16 15:05:03 rpd
37 * Added vm_fault_init.
38 * [91/02/16 rpd]
39 *
40 * Revision 2.3 91/02/05 17:58:12 mrt
41 * Changed to new Mach copyright
42 * [91/02/01 16:32:04 mrt]
43 *
44 * Revision 2.2 90/02/22 20:05:32 dbg
45 * Add vm_fault_copy(), vm_fault_cleanup(). Remove
46 * vm_fault_copy_entry().
47 * [90/01/25 dbg]
48 *
49 * Revision 2.1 89/08/03 16:44:57 rwd
50 * Created.
51 *
52 * Revision 2.6 89/04/18 21:25:22 mwyoung
53 * Reset history.
54 * [89/04/18 mwyoung]
55 *
56 */
57 /*
58 * File: vm/vm_fault.h
59 *
60 * Page fault handling module declarations.
61 */
62
63 #ifndef _VM_VM_FAULT_H_
64 #define _VM_VM_FAULT_H_
65
66 #include <mach/kern_return.h>
67
68 /*
69 * Page fault handling based on vm_object only.
70 */
71
72 typedef kern_return_t vm_fault_return_t;
73 #define VM_FAULT_SUCCESS 0
74 #define VM_FAULT_RETRY 1
75 #define VM_FAULT_INTERRUPTED 2
76 #define VM_FAULT_MEMORY_SHORTAGE 3
77 #define VM_FAULT_FICTITIOUS_SHORTAGE 4
78 #define VM_FAULT_MEMORY_ERROR 5
79
80 extern void vm_fault_init();
81 extern vm_fault_return_t vm_fault_page();
82
83 extern void vm_fault_cleanup();
84 /*
85 * Page fault handling based on vm_map (or entries therein)
86 */
87
88 extern kern_return_t vm_fault();
89 extern void vm_fault_wire();
90 extern void vm_fault_unwire();
91
92 extern kern_return_t vm_fault_copy(); /* Copy pages from
93 * one object to another
94 */
95 #endif _VM_VM_FAULT_H_
Cache object: 782309d36fd26a6bfc2de298753146c9
|