Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167548588
D10579.id27960.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10579.id27960.diff
View Options
Index: share/man/man9/VOP_GETPAGES.9
===================================================================
--- share/man/man9/VOP_GETPAGES.9
+++ share/man/man9/VOP_GETPAGES.9
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 16, 2015
+.Dd May 3, 2017
.Dt VOP_GETPAGES 9
.Os
.Sh NAME
@@ -43,7 +43,7 @@
.Ft int
.Fn VOP_GETPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int *rbehind" "int *rahead"
.Ft int
-.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int sync" "int *rtvals"
+.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *ma" "int bytecount" "int sync" "int *rtvals"
.Sh DESCRIPTION
The
.Fn VOP_GETPAGES
@@ -70,7 +70,9 @@
Pointer to the first element of an array of pages representing a
contiguous region of the file to be read or written.
.It Fa count
-The number of bytes that should be read into the pages of the array.
+The number of pages that should be read into the pages of the array.
+.It Fa bytecount
+The number of bytes that should be written from the pages of the array.
.It Fa sync
.Dv VM_PAGER_PUT_SYNC
if the write should be synchronous.
@@ -135,17 +137,12 @@
.Fn VOP_GETPAGES
must set the valid bits appropriately.
.Fn VOP_GETPAGES
-must keep
-.Fa reqpage
-busy.
-It must unbusy all other successfully handled pages and put them
-on appropriate page queue(s).
-For example,
+must keep all pages in the
+.Fa ma
+array busy.
.Fn VOP_GETPAGES
may either activate a page (if its wanted bit is set)
-or deactivate it (otherwise), and finally call
-.Xr vm_page_xunbusy 9
-to arouse any threads currently waiting for the page to be faulted in.
+or deactivate it (otherwise).
.Sh RETURN VALUES
If it successfully reads
.Fa ma[reqpage] ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 3:09 PM (46 m, 38 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37147827
Default Alt Text
D10579.id27960.diff (1 KB)
Attached To
Mode
D10579: Updates to VOP_GETPAGES.9
Attached
Detach File
Event Timeline
Log In to Comment