summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-08-23 08:13:26 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-08-23 08:13:26 +0000
commit5e018d13123ba2850afd208f355a0577361e19d2 (patch)
tree88d1b9ad76f66ffad16bab3cc37857968ca274ac /sys/uvm/uvm.h
parent238f8e71e72bda976d468ba8817e92e5248e25d3 (diff)
sync with NetBSD from 1999.05.24 (there is a reason for this date)
Mostly cleanups, but also a few improvements to pagedaemon for better handling of low memory and/or low swap conditions.
Diffstat (limited to 'sys/uvm/uvm.h')
-rw-r--r--sys/uvm/uvm.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h
index 3951affe90f..e2ee78db07b 100644
--- a/sys/uvm/uvm.h
+++ b/sys/uvm/uvm.h
@@ -1,10 +1,4 @@
-/* $OpenBSD: uvm.h,v 1.2 1999/02/26 05:32:05 art Exp $ */
-/* $NetBSD: uvm.h,v 1.13 1998/10/11 22:59:53 chuck Exp $ */
-
-/*
- * XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
- * >>>USE AT YOUR OWN RISK, WORK IS NOT FINISHED<<<
- */
+/* $NetBSD: uvm.h,v 1.14 1999/03/25 18:48:49 mrg Exp $ */
/*
*
@@ -92,6 +86,7 @@ struct uvm {
int page_nhash; /* number of buckets */
int page_hashmask; /* hash mask */
simple_lock_data_t hashlock; /* lock on page_hash array */
+
/* anon stuff */
struct vm_anon *afree; /* anon free list */
simple_lock_data_t afreelock; /* lock on anon free list */
@@ -107,6 +102,9 @@ struct uvm {
vaddr_t pager_sva; /* start of pager VA area */
vaddr_t pager_eva; /* end of pager VA area */
+ /* swap-related items */
+ simple_lock_data_t swap_data_lock;
+
/* kernel object: to support anonymous pageable kernel memory */
struct uvm_object *kernel_object;
};