summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-09-24 10:19:43 +0000
committerdillon <dillon@FreeBSD.org>1999-09-24 10:19:43 +0000
commit386338d04f80eaaa48efaff4c4eb26ee72ab2472 (patch)
tree3f0fa32bd098eeaa946c9ca9625eb6c0a290ac3b /share
parent609f54c951188af186c30e759ae8b70731e6cbae (diff)
downloadFreeBSD-src-386338d04f80eaaa48efaff4c4eb26ee72ab2472.zip
FreeBSD-src-386338d04f80eaaa48efaff4c4eb26ee72ab2472.tar.gz
Bring more VOP manual pages up to date in regards to locking
requirements.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/VOP_ATTRIB.92
-rw-r--r--share/man/man9/VOP_RENAME.910
2 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/VOP_ATTRIB.9 b/share/man/man9/VOP_ATTRIB.9
index c6302d3..4d26814 100644
--- a/share/man/man9/VOP_ATTRIB.9
+++ b/share/man/man9/VOP_ATTRIB.9
@@ -64,7 +64,7 @@ Attributes which are not being modified by
should be set to the value
.Dv VNOVAL .
.Sh LOCKS
-The file should not be locked on entry.
+The file will not be locked on entry and should not be locked on return.
.Sh RETURN VALUES
.Xr VOP_GETATTR 9
returns information about the file in
diff --git a/share/man/man9/VOP_RENAME.9 b/share/man/man9/VOP_RENAME.9
index d439855..c210b77 100644
--- a/share/man/man9/VOP_RENAME.9
+++ b/share/man/man9/VOP_RENAME.9
@@ -59,11 +59,11 @@ the vnode of the target file (if it exists)
pathname information about the file's new name
.El
.Sh LOCKS
-The destination directory and file (if it exists) should be locked on entry.
-The source directory and file
-will be released on exit.
-The destination directory and file (if it exists) will be unlocked
-and released on exit.
+The source directory and file will have their ref count bumped on entry.
+The destination directory and file will be locked and referenced on entry.
+The procedure must release (not unlock) the source directory and file,
+and must relase and unlock (i.e. vput) the destination directory and file
+prior to return.
.Sh PSEUDOCODE
.Bd -literal
int
OpenPOWER on IntegriCloud