|
NAMEvm_map_wire , vm_map_unwire
—
manage page wiring within a virtual memory map
SYNOPSIS#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>
int
int
DESCRIPTIONThevm_map_wire () function is responsible for wiring
pages in the range between start and
end within the map map. Wired
pages are locked into physical memory, and may not be paged out as long as
their wire count remains above zero.
The The flags argument is a bit mask, consisting of the following flags: If the If the If a contiguous range is desired, callers should explicitly
express their intent by specifying the
IMPLEMENTATION NOTESBoth functions will attempt to acquire a lock on the map using vm_map_lock(9) and hold it for the duration of the call. If they detectMAP_ENTRY_IN_TRANSITION , they will call
vm_map_unlock_and_wait(9)
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. RETURN VALUESThevm_map_wire () and
vm_map_unwire () functions have identical return
values. The functions return KERN_SUCCESS 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 SEE ALSOmlockall(2), munlockall(2), vm_map(9)AUTHORSThis manual page was written by Bruce M Simpson <bms@spc.org>.
Visit the GSP FreeBSD Man Page Interface. |