summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-02 05:10:16 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-02 05:10:16 +0000
commit1eae2c6aeb15e14fbbca4374cf353c9955af177c (patch)
treea18eb355c9ee4d6a609945928250a43e673419e3 /share/man/man9
parent108f19d0ced75c574baf04aadc2461544271ab61 (diff)
Update pseudocode to match with the current interface of vn_lock()
and VOP_UNLOCK().
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/vinvalbuf.98
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man9/vinvalbuf.9 b/share/man/man9/vinvalbuf.9
index ef7afdcc196..034f8d5c391 100644
--- a/share/man/man9/vinvalbuf.9
+++ b/share/man/man9/vinvalbuf.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vinvalbuf.9,v 1.10 2016/03/19 12:04:15 natano Exp $
+.\" $OpenBSD: vinvalbuf.9,v 1.11 2018/05/02 05:10:15 visa Exp $
.\"
.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
.\"
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD: src/share/man/man9/vinvalbuf.9,v 1.6 2001/10/06 11:19:41 sheldonh Exp $
.\"
-.Dd $Mdocdate: March 19 2016 $
+.Dd $Mdocdate: May 2 2018 $
.Dt VINVALBUF 9
.Os
.Sh NAME
@@ -85,9 +85,9 @@ return.
A value of 0 is returned on success.
.Sh PSEUDOCODE
.Bd -literal -offset indent
-vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p);
+vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY);
error = vinvalbuf(devvp, V_SAVE, cred, p, 0, 0);
-VOP_UNLOCK(devvp, p);
+VOP_UNLOCK(devvp);
if (error)
return (error);
.Ed