]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/vm_behavior.h
ee8c8d5766194ee23f4d4477dd08b8e06144f30b
[apple/xnu.git] / osfmk / mach / vm_behavior.h
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * @OSF_COPYRIGHT@
25 */
26 /*
27 * File: mach/vm_behavior.h
28 *
29 * Virtual memory map behavior definitions.
30 *
31 */
32
33 #ifndef _MACH_VM_BEHAVIOR_H_
34 #define _MACH_VM_BEHAVIOR_H_
35
36 /*
37 * Types defined:
38 *
39 * vm_behavior_t behavior codes.
40 */
41
42 typedef int vm_behavior_t;
43
44 /*
45 * Enumeration of valid values for vm_behavior_t.
46 * These describe expected page reference behavior for
47 * for a given range of virtual memory. For implementation
48 * details see vm/vm_fault.c
49 */
50
51
52 #define VM_BEHAVIOR_DEFAULT ((vm_behavior_t) 0) /* default */
53 #define VM_BEHAVIOR_RANDOM ((vm_behavior_t) 1) /* random */
54 #define VM_BEHAVIOR_SEQUENTIAL ((vm_behavior_t) 2) /* forward sequential */
55 #define VM_BEHAVIOR_RSEQNTL ((vm_behavior_t) 3) /* reverse sequential */
56 #define VM_BEHAVIOR_WILLNEED ((vm_behavior_t) 4) /* will need in near future */
57 #define VM_BEHAVIOR_DONTNEED ((vm_behavior_t) 5) /* dont need in near future */
58
59 #endif /*_MACH_VM_BEHAVIOR_H_*/