vn_lock: describe flags, remove reference to lockmgr.

This commit is contained in:
rmind 2011-01-30 07:04:48 +00:00
parent e5f51d8e44
commit f79a70df93

View File

@ -1,4 +1,4 @@
.\" $NetBSD: vnsubr.9,v 1.40 2010/12/02 12:54:13 wiz Exp $
.\" $NetBSD: vnsubr.9,v 1.41 2011/01/30 07:04:48 rmind 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 June 18, 2010
.Dd January 30, 2010
.Dt VNSUBR 9
.Os
.Sh NAME
@ -127,9 +127,20 @@ Common code to acquire the lock for vnode
.Fa vp .
The argument
.Fa flags
specifies the
.Xr lockmgr 9
flags used to lock the vnode.
specifies the flags used to lock the vnode.
There are the following flags:
.Pp
.Bl -tag -offset indent -width LK_EXCLUSIVE -compact
.It LK_SHARED
shared lock
.It LK_EXCLUSIVE
exclusive lock
.It LK_NOWAIT
do not sleep to await lock
.It LK_RETRY
retry lock operation until locked
.El
.Pp
If the operation is successful zero is returned, otherwise an
appropriate error code is returned.
The vnode interlock