summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_aobj.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2013-12-08 21:16:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2013-12-08 21:16:35 +0000
commit88a70d680736daa713246b53fa074e1c8d3b878e (patch)
tree778e2c9802ba29dc19877d0a1716db1feedef71c /sys/uvm/uvm_aobj.h
parent8f12c06d56716270f7e3b6ba30c35c24f04f1e3d (diff)
allow aobj to shrink grow, for tmpfs support
A few tweaks asked by kettenis@ (code doesn't affect systems without mounted tmpfs at all) okay beck@
Diffstat (limited to 'sys/uvm/uvm_aobj.h')
-rw-r--r--sys/uvm/uvm_aobj.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/uvm/uvm_aobj.h b/sys/uvm/uvm_aobj.h
index 218e9e3df65..c58175e7f88 100644
--- a/sys/uvm/uvm_aobj.h
+++ b/sys/uvm/uvm_aobj.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_aobj.h,v 1.13 2011/05/10 21:48:17 oga Exp $ */
+/* $OpenBSD: uvm_aobj.h,v 1.14 2013/12/08 21:16:34 espie Exp $ */
/* $NetBSD: uvm_aobj.h,v 1.10 2000/01/11 06:57:49 chs Exp $ */
/*
@@ -53,6 +53,7 @@
/* flags for uao_create: can only be used one time (at bootup) */
#define UAO_FLAG_KERNOBJ 0x1 /* create kernel object */
#define UAO_FLAG_KERNSWAP 0x2 /* enable kernel swap */
+#define UAO_FLAG_CANFAIL 0x4 /* creation can fail */
/* internal flags */
#define UAO_FLAG_NOSWAP 0x8 /* aobj can't swap (kernel obj only!) */
@@ -67,6 +68,8 @@ void uao_init(void);
int uao_set_swslot(struct uvm_object *, int, int);
int uao_dropswap(struct uvm_object *, int);
int uao_swap_off(int, int);
+int uao_shrink(struct uvm_object *, int);
+int uao_grow(struct uvm_object *, int);
/*
* globals