From 2841d9faabe4c86665d799156297878ec3720e51 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 9 Jun 2008 20:30:26 +0000 Subject: Define a new flag, UVM_FLAG_HOLE, for uvm_map to create a vm_map_entry of a new etype, UVM_ET_HOLE, meaning it has no backend. UVM_ET_HOLE entries (which should be created as UVM_PROT_NONE and with UVM_FLAG_NOMERGE and UVM_FLAG_HOLE) are skipped in uvm_unmap_remove(), so that pmap_{k,}remove() is not called on the entry. This is intended to save time, and behave better, on pmaps with MMU holes at process exit time. ok art@, kettenis@ provided feedback as well. --- share/man/man9/uvm.9 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/man/man9/uvm.9 b/share/man/man9/uvm.9 index 3adb7515243..2381fc24b87 100644 --- a/share/man/man9/uvm.9 +++ b/share/man/man9/uvm.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: uvm.9,v 1.34 2008/05/06 16:26:07 jmc Exp $ +.\" $OpenBSD: uvm.9,v 1.35 2008/06/09 20:30:22 miod Exp $ .\" $NetBSD: uvm.9,v 1.14 2000/06/29 06:08:44 mrg Exp $ .\" .\" Copyright (c) 1998 Matthew R. Green @@ -30,7 +30,7 @@ .\" XXX this manual sets nS to 1 or 0 in the description, to obtain .\" synopsis-like function prototypes. any better way? .\" -.Dd $Mdocdate: May 6 2008 $ +.Dd $Mdocdate: June 9 2008 $ .Dt UVM 9 .Os .Sh NAME @@ -257,6 +257,7 @@ can take are: #define UVM_FLAG_COPYONW 0x080000 /* set copy_on_write flag */ #define UVM_FLAG_AMAPPAD 0x100000 /* bss: pad amap to reduce malloc() */ #define UVM_FLAG_TRYLOCK 0x200000 /* fail if we can not lock map */ +#define UVM_FLAG_HOLE 0x400000 /* no backend */ .Ed .Pp The -- cgit v1.2.3