|
NAMEpmap_enter —
insert a virtual page into a physical map
SYNOPSIS#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
int
DESCRIPTIONThepmap_enter () function creates a mapping in the
physical map pmap from the virtual address
va to the physical page m with the
protection prot. Any previous mapping at the virtual
address va is destroyed.
The flags argument may have the following values:
PMAP_ENTER_NOSLEEP flag is not specified, this
function must create the requested mapping before returning. It may not fail.
In order to create the requested mapping, this function may destroy any
non-wired mapping in any pmap.
The psind parameter specifies the page size
that should be used by the mapping. The supported page sizes are described
by the global array When the The If the request modifies an existing mapping to use a different
physical page, an implementation of If the page m is managed, the page must be
busied by the caller or the owning object must be locked. In the later case,
the The NOTESOn arm and i386 architectures the existing implementation of thepmap_enter function is incomplete, only value 0 for
psind is supported. Other supported architectures,
except amd64, have pagesizes[] array of size 1.
RETURN VALUESIf successful, thepmap_enter () function returns
KERN_SUCCESS . If the
PMAP_ENTER_NOSLEEP flag was specified and the
resources required for the mapping cannot be acquired without sleeping,
KERN_RESOURCE_SHORTAGE is returned.
SEE ALSOpmap(9)AUTHORSThis manual page was first written by Bruce M Simpson <bms@spc.org> and then rewritten byAlan Cox <alc@FreeBSD.org> and Konstantin Belousov <kib@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |