summaryrefslogtreecommitdiffstats
path: root/sys/kern/vnode_if.src
diff options
context:
space:
mode:
authorassar <assar@openbsd.org>2001-07-26 02:10:41 +0000
committerassar <assar@openbsd.org>2001-07-26 02:10:41 +0000
commit78008e48afe9f85454a43e56024ddfe4386732ea (patch)
treeceb1c2d32aa538b8f6a7a0160228713b88002cfe /sys/kern/vnode_if.src
parentremove unused support for creating files and directories from (diff)
downloadwireguard-openbsd-78008e48afe9f85454a43e56024ddfe4386732ea.tar.xz
wireguard-openbsd-78008e48afe9f85454a43e56024ddfe4386732ea.zip
change vop_symlink and vop_mknod to return vpp (the created node)
refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations ok'd by art
Diffstat (limited to 'sys/kern/vnode_if.src')
-rw-r--r--sys/kern/vnode_if.src14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src
index 91de785496f..e75c931d1a8 100644
--- a/sys/kern/vnode_if.src
+++ b/sys/kern/vnode_if.src
@@ -1,4 +1,4 @@
-# $OpenBSD: vnode_if.src,v 1.11 2001/06/23 02:21:05 csapuntz Exp $
+# $OpenBSD: vnode_if.src,v 1.12 2001/07/26 02:10:41 assar Exp $
# $NetBSD: vnode_if.src,v 1.10 1996/05/11 18:26:27 mycroft Exp $
#
# Copyright (c) 1992, 1993
@@ -102,12 +102,12 @@ vop_create {
#
#% mknod dvp L U U
-#% mknod vpp - X -
+#% mknod vpp - L -
#
vop_mknod {
IN SHOULDBELOCKED WILLRELE struct vnode *dvp;
- OUT WILLRELE struct vnode **vpp;
+ OUT struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
};
@@ -314,16 +314,12 @@ vop_rmdir {
#
#% symlink dvp L U U
-#% symlink vpp - U -
-#
-# XXX - note that the return vnode has already been VRELE'ed
-# by the filesystem layer. To use it you must use vget,
-# possibly with a further namei.
+#% symlink vpp - L -
#
vop_symlink {
IN SHOULDBELOCKED WILLRELE struct vnode *dvp;
- OUT WILLRELE struct vnode **vpp;
+ OUT struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
IN char *target;