summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/vm/as.h
diff options
context:
space:
mode:
authorsl108498 <none@none>2006-09-19 15:49:28 -0700
committersl108498 <none@none>2006-09-19 15:49:28 -0700
commitc6939658adb0a356a77bc28f7df252ceb4a8f6cc (patch)
tree2e24cb01bd59e15cda6ad68fa5d778b4cf571fa7 /usr/src/uts/common/vm/as.h
parent69889278ff50c08a6682a39ce6b5d97c5f0c2387 (diff)
downloadillumos-joyent-c6939658adb0a356a77bc28f7df252ceb4a8f6cc.tar.gz
PSARC/2004/580 zone/project.max-locked-memory Resource Controls
PSARC/2006/463 Amendment_to_zone_project.max-locked-memory_Resource_Controls 5053609 RFE: need zone.max-locked-memory rctl 4691104 Need mlock capability without requiring superuser privileges
Diffstat (limited to 'usr/src/uts/common/vm/as.h')
-rw-r--r--usr/src/uts/common/vm/as.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/uts/common/vm/as.h b/usr/src/uts/common/vm/as.h
index c7afefc23c..f1c7ea3cfa 100644
--- a/usr/src/uts/common/vm/as.h
+++ b/usr/src/uts/common/vm/as.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -47,6 +46,7 @@
#include <vm/faultcode.h>
#include <vm/hat.h>
#include <sys/avl.h>
+#include <sys/proc.h>
#ifdef __cplusplus
extern "C" {
@@ -124,6 +124,7 @@ struct as {
size_t a_sizedir; /* size of object directory */
struct as_callback *a_callbacks; /* callback list */
void *a_xhat; /* list of xhat providers */
+ proc_t *a_proc; /* back pointer to proc */
};
#define AS_PAGLCK 0x80
@@ -240,7 +241,7 @@ void as_avlinit(struct as *);
struct seg *as_segat(struct as *as, caddr_t addr);
void as_rangelock(struct as *as);
void as_rangeunlock(struct as *as);
-struct as *as_alloc(void);
+struct as *as_alloc();
void as_free(struct as *as);
int as_dup(struct as *as, struct as **outas);
struct seg *as_findseg(struct as *as, caddr_t addr, int tail);