diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-09-28 18:33:43 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-09-28 18:33:43 +0000 |
commit | 7b9fa3b64b54b633f2c56e49ebfd264f0e26c4b1 (patch) | |
tree | 3b05112786a7aa339f5ed124cd1cba0beb1d63d7 /sys/uvm/uvm_extern.h | |
parent | 581ca1c68542b0da7cc84c10d30e5da60df1a4b2 (diff) |
add a flag to indicate to uvm_map that it should unmap to make space.
this pulls all the relevant operations under the same map locking, and
relieves calling code from responsibility.
ok kettenis matthew
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r-- | sys/uvm/uvm_extern.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h index 5caa7bae34d..6257fab9a09 100644 --- a/sys/uvm/uvm_extern.h +++ b/sys/uvm/uvm_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_extern.h,v 1.134 2015/09/09 14:52:12 miod Exp $ */ +/* $OpenBSD: uvm_extern.h,v 1.135 2015/09/28 18:33:42 tedu Exp $ */ /* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */ /* @@ -112,6 +112,8 @@ typedef int vm_prot_t; #define UVM_FLAG_HOLE 0x0400000 /* no backend */ #define UVM_FLAG_QUERY 0x0800000 /* do everything, except actual execution */ #define UVM_FLAG_NOFAULT 0x1000000 /* don't fault */ +#define UVM_FLAG_UNMAP 0x2000000 /* unmap to make space */ + /* macros to extract info */ #define UVM_PROTECTION(X) ((X) & PROT_MASK) |