18019c643SBruce M Simpson.\" 28019c643SBruce M Simpson.\" Copyright (c) 2003 Bruce M Simpson <bms@spc.org> 38019c643SBruce M Simpson.\" All rights reserved. 48019c643SBruce M Simpson.\" 58019c643SBruce M Simpson.\" Redistribution and use in source and binary forms, with or without 68019c643SBruce M Simpson.\" modification, are permitted provided that the following conditions 78019c643SBruce M Simpson.\" are met: 88019c643SBruce M Simpson.\" 1. Redistributions of source code must retain the above copyright 98019c643SBruce M Simpson.\" notice, this list of conditions and the following disclaimer. 108019c643SBruce M Simpson.\" 2. Redistributions in binary form must reproduce the above copyright 118019c643SBruce M Simpson.\" notice, this list of conditions and the following disclaimer in the 128019c643SBruce M Simpson.\" documentation and/or other materials provided with the distribution. 138019c643SBruce M Simpson.\" 148019c643SBruce M Simpson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 158019c643SBruce M Simpson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 168019c643SBruce M Simpson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 178019c643SBruce M Simpson.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 188019c643SBruce M Simpson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 198019c643SBruce M Simpson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 208019c643SBruce M Simpson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 218019c643SBruce M Simpson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 228019c643SBruce M Simpson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 238019c643SBruce M Simpson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 248019c643SBruce M Simpson.\" SUCH DAMAGE. 258019c643SBruce M Simpson.\" 268019c643SBruce M Simpson.\" $FreeBSD$ 278019c643SBruce M Simpson.\" 288019c643SBruce M Simpson.Dd July 21, 2003 298019c643SBruce M Simpson.Dt PMAP_ENTER 9 308019c643SBruce M Simpson.Sh NAME 318019c643SBruce M Simpson.Nm pmap_enter 328019c643SBruce M Simpson.Nd insert a virtual page into a physical map 338019c643SBruce M Simpson.Sh SYNOPSIS 348019c643SBruce M Simpson.In sys/param.h 358019c643SBruce M Simpson.In vm/vm.h 368019c643SBruce M Simpson.In vm/pmap.h 378019c643SBruce M Simpson.Ft void 381772ac3fSRuslan Ermilov.Fo pmap_enter 391772ac3fSRuslan Ermilov.Fa "pmap_t pmap" "vm_offset_t va" "vm_page_t p" "vm_prot_t prot" 401772ac3fSRuslan Ermilov.Fa "boolean_t wired" 411772ac3fSRuslan Ermilov.Fc 428019c643SBruce M Simpson.Sh DESCRIPTION 438019c643SBruce M SimpsonThe 448019c643SBruce M Simpson.Fn pmap_enter 458019c643SBruce M Simpsonfunction inserts the given physical page 468019c643SBruce M Simpson.Fa p , 478019c643SBruce M Simpsoninto the physical map 488019c643SBruce M Simpson.Fa pmap , 498019c643SBruce M Simpsonat the virtual address 508019c643SBruce M Simpson.Fa va , 518019c643SBruce M Simpsonwith the protection 528019c643SBruce M Simpson.Fa prot . 538019c643SBruce M SimpsonIf 548019c643SBruce M Simpson.Fa wired 558019c643SBruce M Simpsonis 568019c643SBruce M Simpson.Dv TRUE , 578019c643SBruce M Simpsonthen increment the wired count for the page as soon as the mapping 588019c643SBruce M Simpsonis inserted into 598019c643SBruce M Simpson.Fa pmap . 608019c643SBruce M Simpson.Sh IMPLEMENTATION NOTES 618019c643SBruce M SimpsonThis routine MAY NOT lazy-evaluate the entry; it is required by 628019c643SBruce M Simpsonspecification to make the requested entry at the time it is called. 638019c643SBruce M Simpson.Sh SEE ALSO 648019c643SBruce M Simpson.Xr pmap 9 658019c643SBruce M Simpson.Sh AUTHORS 668019c643SBruce M SimpsonThis manual page was written by 678019c643SBruce M Simpson.An Bruce M Simpson Aq bms@spc.org . 68