]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/vm_behavior.h
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
26 * File: mach/vm_behavior.h
28 * Virtual memory map behavior definitions.
32 #ifndef _MACH_VM_BEHAVIOR_H_
33 #define _MACH_VM_BEHAVIOR_H_
38 * vm_behavior_t behavior codes.
41 typedef int vm_behavior_t
;
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
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 */
58 #endif /*_MACH_VM_BEHAVIOR_H_*/