Some updates to vm_map(9).

Remove min_offset, max_offset.  Mention the busy flag.

Prodded by: https://reviews.freebsd.org/D16105.
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2018-08-03 12:14:29 +00:00
parent b32ae5fe79
commit 1b534662ad

View File

@ -25,7 +25,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 9, 2011 .Dd July 3, 2018
.Dt VM_MAP 9 .Dt VM_MAP 9
.Os .Os
.Sh NAME .Sh NAME
@ -62,8 +62,7 @@ struct vm_map {
vm_flags_t flags; vm_flags_t flags;
vm_map_entry_t root; vm_map_entry_t root;
pmap_t pmap; pmap_t pmap;
#define min_offset header.start int busy;
#define max_offset header.end
}; };
.Ed .Ed
.Pp .Pp
@ -99,29 +98,16 @@ Root node of a binary search tree used for fast lookup of map entries.
.It Va pmap .It Va pmap
Pointer to the underlying physical map with which this virtual map Pointer to the underlying physical map with which this virtual map
is associated. is associated.
.It Va min_offset .It Va busy
The minimum Map busy counter, prevents forks.
.Vt vm_offset_t
in this map.
Programs should never use
.Va header.start
or
.Va header.end
directly, use
.Va min_offset
and
.Va max_offset
instead.
.It Va max_offset
The maximum
.Vt vm_offset_t
in this map.
.El .El
.Pp .Pp
There is one possible map flag: Possible map flags:
.Bl -tag -width ".Dv MAP_PREFAULT_MADVISE" .Bl -tag -width ".Dv MAP_PREFAULT_MADVISE"
.It Dv MAP_WIREFUTURE .It Dv MAP_WIREFUTURE
Wire all future pages in this map. Wire all future pages in this map.
.It Dv MAP_BUSY_WAKEUP
There are waiters for the map busy status.
.El .El
.Pp .Pp
The following flags can be passed to The following flags can be passed to