Module Name: src
Committed By: jnemeth
Date: Thu May 28 06:49:30 UTC 2009
Modified Files:
src/share/man/man9: vnsubr.9
Log Message:
clarify vnode locking for vn_rdwr()
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man9/vnsubr.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/vnsubr.9
diff -u src/share/man/man9/vnsubr.9:1.35 src/share/man/man9/vnsubr.9:1.36
--- src/share/man/man9/vnsubr.9:1.35 Wed May 27 23:01:27 2009
+++ src/share/man/man9/vnsubr.9 Thu May 28 06:49:30 2009
@@ -1,4 +1,4 @@
-.\" $NetBSD: vnsubr.9,v 1.35 2009/05/27 23:01:27 jnemeth Exp $
+.\" $NetBSD: vnsubr.9,v 1.36 2009/05/28 06:49:30 jnemeth Exp $
.\"
.\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 27, 2009
+.Dd May 28, 2009
.Dt VNSUBR 9
.Os
.Sh NAME
@@ -193,13 +193,23 @@
.Fa rw
specifies whether the I/O is a read (UIO_READ) or write (UIO_WRITE)
operation.
-The unlocked vnode is specified by
+The vnode is specified by
.Fa vp .
The arguments
.Fa l
and
.Fa cred
are the calling lwp and its credentials.
+If
+.Fa ioflg
+contains
+.Dq IO_NODELOCKED ,
+it is expected that the vnode is locked.
+.Fa ioflg
+will be passed to
+.Fn VOP_READ
+/
+.Fn VOP_WRITE .
The remaining arguments specify the uio parameters.
For further information on these parameters see
.Xr uiomove 9 .