summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2018-10-06 23:08:14 +0000
committerBob Beck <beck@cvs.openbsd.org>2018-10-06 23:08:14 +0000
commit215b808acf4bb204e6fb04ceed5b1d6571714739 (patch)
tree9a18d0dd3d159a022fc3105221489ec6d0b131a7 /share/man/man9
parent1cd322a8fcc70433e1e7eb8331dd23e3303e9fbe (diff)
Stop telling oversimplifying lies about whether or not VOP_LOOKUP will
return the original vnode to you locked or unlocked. Just admit that it depends... ok guenther@
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/VOP_LOOKUP.919
1 files changed, 13 insertions, 6 deletions
diff --git a/share/man/man9/VOP_LOOKUP.9 b/share/man/man9/VOP_LOOKUP.9
index ce8286978c8..37af6826a58 100644
--- a/share/man/man9/VOP_LOOKUP.9
+++ b/share/man/man9/VOP_LOOKUP.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: VOP_LOOKUP.9,v 1.43 2018/06/07 13:37:27 visa Exp $
+.\" $OpenBSD: VOP_LOOKUP.9,v 1.44 2018/10/06 23:08:13 beck Exp $
.\"
.\" Copyright (c) 2003 Ted Unangst
.\" Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 7 2018 $
+.Dd $Mdocdate: October 6 2018 $
.Dt VOP_LOOKUP 9
.Os
.Sh NAME
@@ -644,19 +644,26 @@ in the directory
and return a vnode in
.Fa vpp .
.Fa dvp
-is locked on entry and exit, and
+must be locked and referenced on entry with
+.Xr vget 9 .
+On a successful return,
.Fa vpp
-is locked upon a successful return.
+will be returned locked and referenced, and
+.Fa dvp
+will return with the same reference count, but may be returned locked
+or unlocked depending on the specific flags used in
+.Fa cnp->cn_flags .
+On error
.Fa vpp
will be
.Dv NULL
-on error, and
+and
.Fa cnp->cn_flags
will be set to
.Dv PDIRUNLOCK
if
.Fa dvp
-has been unlocked for an unsuccessful return.
+has been unlocked.
.Pp
.It Fn VOP_MKDIR dvp vpp cnp vap
Create a new directory named by