manage page wiring within a virtual memory map
, vm_offset_t start
() function is responsible for
wiring pages in the range between start
within the map
. Wired pages are locked into physical
memory, and may not be paged out as long as their wire count remains above
() function performs the
corresponding unwire operation.
argument is a bit mask, consisting of
the following flags:
flag is set, the
function operates within user address space.
flag is set, it
may operate upon an arbitrary range within the address space of
If a contiguous range is desired, callers should explicitly express their intent
by specifying the
Both functions will attempt to acquire a lock on the map using
and hold it for the duration of the call. If they detect
, they will call
until the map becomes available again.
The map could have changed during this window as it was held by another
consumer, therefore consumers of this interface should check for this
condition using the return values below.
() functions have identical
return values. The functions return
if all pages within the range
were [un]wired successfully.
Otherwise, if the specified range was not valid, or if the map changed while the
flag was set,
This manual page was written by Bruce M