bldenv/nightly: remove unused RELEASE_MICRO/DEV_CM
[unleashed.git] / include / vm / seg_enum.h
blob3f81e08a93aec25f7234f2fd2710d8b67ad91d11
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
26 /* All Rights Reserved */
29 * Portions of this source code were derived from Berkeley 4.3 BSD
30 * under license from the Regents of the University of California.
33 #ifndef _VM_SEG_ENUM_H
34 #define _VM_SEG_ENUM_H
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
41 * These enumerations are needed in both <vm/seg.h> and
42 * <sys/vnode.h> in order to declare function prototypes.
46 * Fault information passed to the seg fault handling routine.
47 * The F_SOFTLOCK and F_SOFTUNLOCK are used by software
48 * to lock and unlock pages for physical I/O.
50 enum fault_type {
51 F_INVAL, /* invalid page */
52 F_PROT, /* protection fault */
53 F_SOFTLOCK, /* software requested locking */
54 F_SOFTUNLOCK /* software requested unlocking */
58 * Lock information passed to the seg pagelock handling routine.
60 enum lock_type {
61 L_PAGELOCK, /* lock pages */
62 L_PAGEUNLOCK /* unlock pages */
66 * seg_rw gives the access type for a fault operation
68 enum seg_rw {
69 S_OTHER, /* unknown or not touched */
70 S_READ, /* read access attempted */
71 S_WRITE, /* write access attempted */
72 S_EXEC, /* execution access attempted */
73 S_CREATE, /* create if page doesn't exist */
74 S_READ_NOCOW /* read access, don't do a copy on write */
78 * Capabilities for capability segment op.
80 typedef enum {
81 S_CAPABILITY_NOMINFLT /* supports non-faulting page renaming */
82 } segcapability_t;
84 #ifdef __cplusplus
86 #endif
88 #endif /* _VM_SEG_ENUM_H */