Deleted Added
full compact
VOP_GETPAGES.9 (121382) VOP_GETPAGES.9 (130582)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\" Copyright 2003, Garrett A. Wollman
5.\"
6.\" All rights reserved.
7.\"
8.\" This program is free software.

--- 13 unchanged lines hidden (view full) ---

22.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\" Copyright 2003, Garrett A. Wollman
5.\"
6.\" All rights reserved.
7.\"
8.\" This program is free software.

--- 13 unchanged lines hidden (view full) ---

22.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
23.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29.\"
30.\" $FreeBSD: head/share/man/man9/VOP_GETPAGES.9 121382 2003-10-23 02:11:14Z hmp $
30.\" $FreeBSD: head/share/man/man9/VOP_GETPAGES.9 130582 2004-06-16 08:33:57Z ru $
31.\"
32.Dd September 27, 2003
33.Os
34.Dt VOP_GETPAGES 9
35.Sh NAME
36.Nm VOP_GETPAGES ,
37.Nm VOP_PUTPAGES
38.Nd read or write VM pages from a file

--- 43 unchanged lines hidden (view full) ---

82The index in the page array of the requested page; i.e., the one page which
83the implementation of this method must handle.
84.It Fa offset
85Offset in the file at which the mapped pages begin.
86.El
87.Pp
88The status of the
89.Fn VOP_PUTPAGES
31.\"
32.Dd September 27, 2003
33.Os
34.Dt VOP_GETPAGES 9
35.Sh NAME
36.Nm VOP_GETPAGES ,
37.Nm VOP_PUTPAGES
38.Nd read or write VM pages from a file

--- 43 unchanged lines hidden (view full) ---

82The index in the page array of the requested page; i.e., the one page which
83the implementation of this method must handle.
84.It Fa offset
85Offset in the file at which the mapped pages begin.
86.El
87.Pp
88The status of the
89.Fn VOP_PUTPAGES
90method is returned on a page-by-page basis in the array
90method is returned on a page-by-page basis in the array
91.Fa rtvals[] .
92The possible status values are as follows:
93.Bl -tag -width VM_PAGER_ERROR
94.It Dv VM_PAGER_OK
95The page was successfully written.
96The implementation must call
97.Xr vm_pager_undirty 9
98to mark the page as clean.

--- 33 unchanged lines hidden (view full) ---

132(using
133.Xr vm_page_undirty 9 ) ,
134either activate the page (if its wanted bit is set)
135or deactivate it (otherwise), and finally call
136.Xr vm_page_wakeup 9
137to arouse any threads currently waiting for the page to be faulted in,
138for each page read.
139.Sh RETURN VALUES
91.Fa rtvals[] .
92The possible status values are as follows:
93.Bl -tag -width VM_PAGER_ERROR
94.It Dv VM_PAGER_OK
95The page was successfully written.
96The implementation must call
97.Xr vm_pager_undirty 9
98to mark the page as clean.

--- 33 unchanged lines hidden (view full) ---

132(using
133.Xr vm_page_undirty 9 ) ,
134either activate the page (if its wanted bit is set)
135or deactivate it (otherwise), and finally call
136.Xr vm_page_wakeup 9
137to arouse any threads currently waiting for the page to be faulted in,
138for each page read.
139.Sh RETURN VALUES
140If it successfully reads
140If it successfully reads
141.Fa m[reqpage] ,
142.Fn VOP_GETPAGES
143returns
144.Dv VM_PAGER_OK ;
145otherwise,
146.Dv VM_PAGER_ERROR .
147By convention, the return value of
148.Fn VOP_PUTPAGES

--- 14 unchanged lines hidden ---
141.Fa m[reqpage] ,
142.Fn VOP_GETPAGES
143returns
144.Dv VM_PAGER_OK ;
145otherwise,
146.Dv VM_PAGER_ERROR .
147By convention, the return value of
148.Fn VOP_PUTPAGES

--- 14 unchanged lines hidden ---