| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | .\" $NetBSD: uvm.9,v 1.104 2011/04/27 00:35:53 rmind Exp $ | | 1 | .\" $NetBSD: uvm.9,v 1.105 2011/04/27 06:02:03 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1998 Matthew R. Green | | 3 | .\" Copyright (c) 1998 Matthew R. Green |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
15 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | | 15 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
16 | .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | | 16 | .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
17 | .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | | 17 | .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
18 | .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | | 18 | .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
19 | .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | | 19 | .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
20 | .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | | 20 | .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
21 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | | 21 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
22 | .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | | 22 | .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
23 | .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 23 | .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
24 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 24 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
25 | .\" SUCH DAMAGE. | | 25 | .\" SUCH DAMAGE. |
26 | .\" | | 26 | .\" |
27 | .Dd November 7, 2010 | | 27 | .Dd April 27, 2011 |
28 | .Dt UVM 9 | | 28 | .Dt UVM 9 |
29 | .Os | | 29 | .Os |
30 | .Sh NAME | | 30 | .Sh NAME |
31 | .Nm uvm | | 31 | .Nm uvm |
32 | .Nd virtual memory system external interface | | 32 | .Nd virtual memory system external interface |
33 | .Sh SYNOPSIS | | 33 | .Sh SYNOPSIS |
34 | .In sys/param.h | | 34 | .In sys/param.h |
35 | .In uvm/uvm.h | | 35 | .In uvm/uvm.h |
36 | .Sh DESCRIPTION | | 36 | .Sh DESCRIPTION |
37 | The UVM virtual memory system manages access to the computer's memory | | 37 | The UVM virtual memory system manages access to the computer's memory |
38 | resources. | | 38 | resources. |
39 | User processes and the kernel access these resources through | | 39 | User processes and the kernel access these resources through |
40 | UVM's external interface. | | 40 | UVM's external interface. |
| @@ -881,27 +881,26 @@ means that we must not sleep. | | | @@ -881,27 +881,26 @@ means that we must not sleep. |
881 | causes any pages which do not already exist to be skipped. | | 881 | causes any pages which do not already exist to be skipped. |
882 | .Dv UFP_NOCACHE | | 882 | .Dv UFP_NOCACHE |
883 | causes any pages which do already exist to be skipped. | | 883 | causes any pages which do already exist to be skipped. |
884 | .Dv UFP_NORDONLY | | 884 | .Dv UFP_NORDONLY |
885 | causes any pages which are marked PG_READONLY to be skipped. | | 885 | causes any pages which are marked PG_READONLY to be skipped. |
886 | .Pp | | 886 | .Pp |
887 | .Fn uvm_vnp_setsize | | 887 | .Fn uvm_vnp_setsize |
888 | sets the size of vnode | | 888 | sets the size of vnode |
889 | .Fa vp | | 889 | .Fa vp |
890 | to | | 890 | to |
891 | .Fa newsize . | | 891 | .Fa newsize . |
892 | Caller must hold a reference to the vnode. | | 892 | Caller must hold a reference to the vnode. |
893 | If the vnode shrinks, pages no longer used are discarded. | | 893 | If the vnode shrinks, pages no longer used are discarded. |
894 | .Pp | | | |
895 | .Sh SYSCTL | | 894 | .Sh SYSCTL |
896 | UVM provides support for the | | 895 | UVM provides support for the |
897 | .Dv CTL_VM | | 896 | .Dv CTL_VM |
898 | domain of the | | 897 | domain of the |
899 | .Xr sysctl 3 | | 898 | .Xr sysctl 3 |
900 | hierarchy. | | 899 | hierarchy. |
901 | It handles the | | 900 | It handles the |
902 | .Dv VM_LOADAVG , | | 901 | .Dv VM_LOADAVG , |
903 | .Dv VM_METER , | | 902 | .Dv VM_METER , |
904 | .Dv VM_UVMEXP , | | 903 | .Dv VM_UVMEXP , |
905 | and | | 904 | and |
906 | .Dv VM_UVMEXP2 | | 905 | .Dv VM_UVMEXP2 |
907 | nodes, which return the current load averages, calculates current VM | | 906 | nodes, which return the current load averages, calculates current VM |