|
Line 0
Link Here
|
|
|
1 |
.\" |
| 2 |
.\" Copyright (c) 2003 Bruce M Simpson <bms@spc.org> |
| 3 |
.\" All rights reserved. |
| 4 |
.\" |
| 5 |
.\" Redistribution and use in source and binary forms, with or without |
| 6 |
.\" modification, are permitted provided that the following conditions |
| 7 |
.\" are met: |
| 8 |
.\" 1. Redistributions of source code must retain the above copyright |
| 9 |
.\" notice, this list of conditions and the following disclaimer. |
| 10 |
.\" 2. Redistributions in binary form must reproduce the above copyright |
| 11 |
.\" notice, this list of conditions and the following disclaimer in the |
| 12 |
.\" documentation and/or other materials provided with the distribution. |
| 13 |
.\" |
| 14 |
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 15 |
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 16 |
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 17 |
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
| 18 |
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 19 |
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 20 |
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 21 |
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 22 |
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 23 |
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 24 |
.\" SUCH DAMAGE. |
| 25 |
.\" |
| 26 |
.\" $FreeBSD$ |
| 27 |
.\" |
| 28 |
.Dd July 21, 2003 |
| 29 |
.Dt pmap 9 |
| 30 |
.Sh NAME |
| 31 |
.Nm pmap |
| 32 |
.Nd machine-dependent portion of virtual memory subsystem |
| 33 |
.Sh SYNOPSIS |
| 34 |
.In sys/param.h |
| 35 |
.In vm/vm.h |
| 36 |
.In vm/pmap.h |
| 37 |
.Sh DESCRIPTION |
| 38 |
The |
| 39 |
.Nm |
| 40 |
module is the machine-dependent portion of the |
| 41 |
.Fx |
| 42 |
VM. |
| 43 |
Each function documented herein must have its own implementation on |
| 44 |
each architecture which |
| 45 |
.Fx |
| 46 |
supports. |
| 47 |
.Pp |
| 48 |
.Nm |
| 49 |
is responsible for managing hardware-dependent objects such as page tables, |
| 50 |
address maps, TLBs, et cetera. |
| 51 |
.Pp |
| 52 |
Machine-dependent code must provide the header file |
| 53 |
.Em <machine/pmap.h> . |
| 54 |
This file contains the definition of the |
| 55 |
.Dv pmap |
| 56 |
structure: |
| 57 |
.Bd -literal -offset indent |
| 58 |
struct pmap { |
| 59 |
/* Contents defined by pmap implementation. */ |
| 60 |
}; |
| 61 |
typedef struct pmap *pmap_t; |
| 62 |
.Ed |
| 63 |
.Pp |
| 64 |
This header file may also define other data structures that the |
| 65 |
machine-dependent |
| 66 |
.Nm |
| 67 |
implementation uses. |
| 68 |
.Pp |
| 69 |
The header file |
| 70 |
.Em <vm/pmap.h> |
| 71 |
defines a structure for tracking |
| 72 |
.Nm |
| 73 |
statistics (see below). |
| 74 |
This structure is defined as: |
| 75 |
.Bd -literal -offset indent |
| 76 |
struct pmap_statistics { |
| 77 |
long resident_count; /* number of mapped pages */ |
| 78 |
long wired_count; /* number of wired pages */ |
| 79 |
}; |
| 80 |
.Ed |
| 81 |
.Pp |
| 82 |
Each implementation is expected to maintain the statistics in this structure. |
| 83 |
.Sh SEE ALSO |
| 84 |
.Xr pmap 9 , |
| 85 |
.Xr pmap_activate 9 , |
| 86 |
.Xr pmap_addr_hint 9 , |
| 87 |
.Xr pmap_change_wiring 9 , |
| 88 |
.Xr pmap_clear_modify 9 , |
| 89 |
.Xr pmap_clear_reference , |
| 90 |
.Xr pmap_copy 9 , |
| 91 |
.Xr pmap_copy_page 9 , |
| 92 |
.Xr pmap_enter 9 , |
| 93 |
.Xr pmap_extract 9 , |
| 94 |
.Xr pmap_growkernel 9 , |
| 95 |
.Xr pmap_init 9 , |
| 96 |
.Xr pmap_init2 9 , |
| 97 |
.Xr pmap_is_modified 9 , |
| 98 |
.Xr pmap_map 9 , |
| 99 |
.Xr pmap_mincore 9 , |
| 100 |
.Xr pmap_object_init_pt 9 , |
| 101 |
.Xr pmap_page_exists_quick 9 , |
| 102 |
.Xr pmap_page_protect 9 , |
| 103 |
.Xr pmap_pinit 9 , |
| 104 |
.Xr pmap_pinit0 9 , |
| 105 |
.Xr pmap_pinit2 9 , |
| 106 |
.Xr pmap_prefault 9 , |
| 107 |
.Xr pmap_protect 9 , |
| 108 |
.Xr pmap_qenter 9 , |
| 109 |
.Xr pmap_qremove 9 , |
| 110 |
.Xr pmap_release 9 , |
| 111 |
.Xr pmap_remove 9 , |
| 112 |
.Xr pmap_remove_all 9 , |
| 113 |
.Xr pmap_remove_pages 9 , |
| 114 |
.Xr pmap_ts_modified 9 , |
| 115 |
.Xr pmap_zero_area 9 , |
| 116 |
.Xr pmap_zero_page 9 , |
| 117 |
.Xr pmap_zero_idle 9 , |
| 118 |
.Xr vm_map 9 |
| 119 |
.Sh AUTHORS |
| 120 |
This man page was written by |
| 121 |
.An Bruce M Simpson Aq bms@spc.org . |