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